【发布时间】:2011-10-24 01:20:07
【问题描述】:
在页面http://pypi.python.org/pypi/websocket-client/0.4 中的第一个sn-p(“低级API 示例”)与http://docs.python.org/library/socket.html#example 中的客户端示例非常相似。
我感兴趣的是是否有可能制作一个甚至被驱动的 TCP 客户端,例如第一个网页上的“JavaScript websocket-like API 示例”,它在例如消息到达时执行操作.我怎样才能做到这一点? 我发现this example 使用了twisted。还有其他(更好的?)方法吗?
【问题讨论】:
标签: javascript python events tcp tcpclient