We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40bd5ea commit 6f110eeCopy full SHA for 6f110ee
examples/ticker/wsMongoTicker.py
@@ -77,8 +77,8 @@ def on_open(self, ws):
77
{'$set': tick[market]},
78
upsert=True)
79
print('Populated markets database with ticker data')
80
- ws.send(json.dumps({'command': 'subscribe',
81
- 'channel': 1002}))
+ self.ws.send(json.dumps({'command': 'subscribe',
+ 'channel': 1002}))
82
83
def start(self):
84
self.t = Thread(target=self.ws.run_forever)
0 commit comments