Save before flight
This commit is contained in:
parent
5f27c22681
commit
b9e63ff7cd
3 changed files with 42 additions and 10 deletions
|
|
@ -1,10 +1,11 @@
|
|||
from socketIO_client import SocketIO
|
||||
|
||||
|
||||
def on_news(self, data):
|
||||
print(data)
|
||||
self.emit('my other event', {'my': 'data'})
|
||||
# def on_news(self, data):
|
||||
# print(data)
|
||||
# self.emit('my other event', {'my': 'data'})
|
||||
|
||||
|
||||
s = SocketIO('localhost', 9000)
|
||||
s.on('news', on_news)
|
||||
s.emit('whee')
|
||||
# s.on('news', on_news)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue