summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sato <ksato9700@gmail.com>2011-03-01 00:27:47 -0800
committerKen Sato <ksato9700@gmail.com>2011-03-01 00:27:47 -0800
commit6ef30c054bcd32fc7235bd8619d34c9f29cb8379 (patch)
treea51cd1d2e4c28a0d70c018f6fdd73456f92f6b37
parent5f913bcf33fed24d1a4c36375a8abbc8b0e6bc6a (diff)
downloadwebsocket-client-6ef30c054bcd32fc7235bd8619d34c9f29cb8379.tar.gz
changed the echo server URL so that we can test without running a local echo server
-rw-r--r--README.rst2
-rw-r--r--examples/echo_client.py2
-rw-r--r--websocket.py2
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'