This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import storm | |
| from storm import log | |
| from websocket import create_connection | |
| try: | |
| import simplejson as json | |
| except ImportError: | |
| import json | |
| json_decode = lambda x: json.loads(x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import websocket | |
| import thread | |
| import time | |
| def on_message(ws, message): | |
| print message | |
| def on_error(ws, error): | |
| print error |
NewerOlder