Use GET request to get pong
This commit is contained in:
parent
cbdf009d46
commit
eda747ec4e
3 changed files with 23 additions and 20 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue