summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliris <liris.pp@gmail.com>2011-03-02 21:18:39 +0900
committerliris <liris.pp@gmail.com>2011-03-02 21:18:39 +0900
commitdf632aec200f0a2ddbfc024363a13260ed45bf74 (patch)
treeed8b0f908a249014854da2c43b39cc5dcb85d50f
parentcbf45abada6444a74bbdf2a98ca2fbd58c6e9d5e (diff)
downloadwebsocket-client-df632aec200f0a2ddbfc024363a13260ed45bf74.tar.gz
changed the echo server URL
-rw-r--r--README.rst2
-rw-r--r--websocket.py2
2 files changed, 2 insertions, 2 deletions
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"