diff options
author | liris <liris.pp@gmail.com> | 2011-03-02 21:18:39 +0900 |
---|---|---|
committer | liris <liris.pp@gmail.com> | 2011-03-02 21:18:39 +0900 |
commit | df632aec200f0a2ddbfc024363a13260ed45bf74 (patch) | |
tree | ed8b0f908a249014854da2c43b39cc5dcb85d50f | |
parent | cbf45abada6444a74bbdf2a98ca2fbd58c6e9d5e (diff) | |
download | websocket-client-df632aec200f0a2ddbfc024363a13260ed45bf74.tar.gz |
changed the echo server URL
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | websocket.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -62,7 +62,7 @@ JavaScript websocket-like API example:: if __name__ == "__main__": websocket.enableTrace(True) - ws = websocket.WebSocketApp("ws://localhost:5000/chat", + ws = websocket.WebSocketApp("ws://echo.websocket.org/", on_message = on_message, on_error = on_error, on_close = on_close) diff --git a/websocket.py b/websocket.py index 673ee4a..e5f550a 100644 --- a/websocket.py +++ b/websocket.py @@ -506,7 +506,7 @@ class WebSocketApp(object): if __name__ == "__main__": enableTrace(True) #ws = create_connection("ws://localhost:8080/echo") - ws = create_connection("ws://localhost:5000/chat") + ws = create_connection("ws://echo.websocket.org/") print "Sending 'Hello, World'..." ws.send("Hello, World") print "Sent" |