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.
13 lines
271 B
13 lines
271 B
import asyncio
|
|
|
|
import socketio
|
|
|
|
|
|
async def main():
|
|
async with socketio.AsyncSimpleClient() as sio:
|
|
await sio.connect("http://localhost:5000", auth={"token": "my-token"})
|
|
print(await sio.receive())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|
|
|