Use GET request to get pong

This commit is contained in:
Roy Hyunjin Han 2014-11-30 05:58:02 -05:00
commit eda747ec4e
3 changed files with 23 additions and 20 deletions

10
experiments/client2.py Normal file
View file

@ -0,0 +1,10 @@
from socketIO_client import SocketIO
def on_news(self, data):
print(data)
self.emit('my other event', {'my': 'data'})
s = SocketIO('localhost', 9000)
s.on('news', on_news)