changed the echo server URL
This commit is contained in:
@@ -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)
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user