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