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

Side by Side Diff: tools/telemetry/third_party/websocket-client/websocket.py

Issue 11361165: [chrome_remote_control] Rename chrome_remote_control to telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
1 """ 1 """
2 websocket - WebSocket client library for Python 2 websocket - WebSocket client library for Python
3 3
4 Copyright (C) 2010 Hiroki Ohtani(liris) 4 Copyright (C) 2010 Hiroki Ohtani(liris)
5 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public 7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version. 9 version 2.1 of the License, or (at your option) any later version.
10 10
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 if __name__ == "__main__": 747 if __name__ == "__main__":
748 enableTrace(True) 748 enableTrace(True)
749 ws = create_connection("ws://echo.websocket.org/") 749 ws = create_connection("ws://echo.websocket.org/")
750 print "Sending 'Hello, World'..." 750 print "Sending 'Hello, World'..."
751 ws.send("Hello, World") 751 ws.send("Hello, World")
752 print "Sent" 752 print "Sent"
753 print "Receiving..." 753 print "Receiving..."
754 result = ws.recv() 754 result = ws.recv()
755 print "Received '%s'" % result 755 print "Received '%s'" % result
756 ws.close() 756 ws.close()
OLDNEW
« no previous file with comments | « tools/telemetry/third_party/websocket-client/README.rst ('k') | tools/telemetry/unittest_data/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698