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

View file

@ -1,16 +0,0 @@
class SocketIO(object):
def __init__(self, host, port):
pass
def on(self, event, callback):
pass
def on_news(self, data):
print(data)
self.emit('my other event', {'my': 'data'})
s = SocketIO('localhost', 9000)
s.on('news', on_news)