我正在尝试使用autobahn for websockets。我在这里修改了代码: https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/websocket/echo/client.py
我替换了
factory = WebSocketClientFactory(u"ws://127.0.0.1:9000")
带
factory = WebSocketClientFactory(u"ws://echo.websocket.org")
我的输出是:
2016-12-18 20:54:14-0500 [-] Log opened.
2016-12-18 20:54:14-0500 [-] Starting factory <autobahn.twisted.websocket.WebSocketClientFactory object at 0x104a37f10>
2016-12-18 20:54:14-0500 [-] Stopping factory <autobahn.twisted.websocket.WebSocketClientFactory object at 0x104a37f10>
^C2016-12-18 20:54:17-0500 [-] Received SIGINT, shutting down.
2016-12-18 20:54:17-0500 [-] Main loop terminated.
见(http://www.websocket.org/echo.html) 我想这是非常基本的,可能源于对websockets的一个基本误解,但是,有什么建议吗?