pythonasyncioeventletgeventlong-pollinglow-latencysocket-iosocketiosocketio-serverweb-serverwebsocket
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
213 B
11 lines
213 B
import socketio
|
|
|
|
|
|
def main():
|
|
with socketio.SimpleClient() as sio:
|
|
sio.connect("http://localhost:5000", auth={"token": "my-token"})
|
|
print(sio.receive())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|