diff --git a/README.rst b/README.rst index bb80c9b..e66cae3 100644 --- a/README.rst +++ b/README.rst @@ -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"