From 6ef30c054bcd32fc7235bd8619d34c9f29cb8379 Mon Sep 17 00:00:00 2001 From: Ken Sato Date: Tue, 1 Mar 2011 00:27:47 -0800 Subject: changed the echo server URL so that we can test without running a local echo server --- README.rst | 2 +- examples/echo_client.py | 2 +- websocket.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 01c9d55..bb80c9b 100644 --- a/README.rst +++ b/README.rst @@ -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' -- cgit v1.2.1