Save before flight

This commit is contained in:
Roy Hyunjin Han 2015-01-25 10:17:03 +09:00
commit b9e63ff7cd
3 changed files with 42 additions and 10 deletions

View file

@ -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)