changed the echo server URL

This commit is contained in:
liris
2011-03-02 21:18:39 +09:00
parent cbf45abada
commit df632aec20
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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"