diff options
author | Ken Sato <ksato9700@gmail.com> | 2011-03-01 00:27:47 -0800 |
---|---|---|
committer | Ken Sato <ksato9700@gmail.com> | 2011-03-01 00:27:47 -0800 |
commit | 6ef30c054bcd32fc7235bd8619d34c9f29cb8379 (patch) | |
tree | a51cd1d2e4c28a0d70c018f6fdd73456f92f6b37 | |
parent | 5f913bcf33fed24d1a4c36375a8abbc8b0e6bc6a (diff) | |
download | websocket-client-6ef30c054bcd32fc7235bd8619d34c9f29cb8379.tar.gz |
changed the echo server URL so that we can test without running a local echo server
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | examples/echo_client.py | 2 | ||||
-rw-r--r-- | websocket.py | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ Example Low Level API example:: from websocket import create_connection - ws = create_connection("ws://localhost:5000/echo") + ws = create_connection("ws://echo.websocket.org/") print "Sending 'Hello, World'..." ws.send("Hello, World") print "Sent" diff --git a/examples/echo_client.py b/examples/echo_client.py index f8f6bf3..1eb5f1b 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -2,7 +2,7 @@ import websocket if __name__ == "__main__": websocket.enableTrace(True) - ws = websocket.create_connection("ws://localhost:5000/chat") + ws = websocket.create_connection("ws://echo.websocket.org/") print "Sending 'Hello, World'..." ws.send("Hello, World") print "Sent" diff --git a/websocket.py b/websocket.py index 2a129f7..673ee4a 100644 --- a/websocket.py +++ b/websocket.py @@ -173,7 +173,7 @@ class WebSocket(object): >>> import websocket >>> ws = websocket.WebSocket() - >>> ws.Connect("ws://localhost:8080/echo") + >>> ws.Connect("ws://echo.websocket.org") >>> ws.send("Hello, Server") >>> ws.recv() 'Hello, Server' |