11 lines
207 B
Python
11 lines
207 B
Python
from socketIO_client import SocketIO
|
|
|
|
|
|
# def on_news(self, data):
|
|
# print(data)
|
|
# self.emit('my other event', {'my': 'data'})
|
|
|
|
|
|
s = SocketIO('localhost', 9000)
|
|
s.emit('whee')
|
|
# s.on('news', on_news)
|