Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: tools/devtools_auto/third_party/websocket-client/examples/echo_client.py

Issue 10831399: Revert 152439 - Initial checkin for devtools-based automation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import websocket
2
3 if __name__ == "__main__":
4 websocket.enableTrace(True)
5 ws = websocket.create_connection("ws://echo.websocket.org/")
6 print "Sending 'Hello, World'..."
7 ws.send("Hello, World")
8 print "Sent"
9 print "Receiving..."
10 result = ws.recv()
11 print "Received '%s'" % result
12 ws.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698