python-socketio implements Socket.IO clients and servers in Python for WebSocket and long-polling transports. Version pairing matters with JavaScript Socket.IO peers.
Overview
python-socketio provides Python-side support for the Socket.IO protocol used in realtime web apps. It implements both client and server roles so backends can exchange events with browsers or other Socket.IO endpoints over WebSocket or long-polling fallbacks.
Socket.IO revisions introduced incompatible protocol changes, so this package version must align with the Engine.IO and Socket.IO protocol generation used by peers. A published compatibility table maps python-socketio releases to JavaScript Socket.IO major versions and protocol numbers.
When both ends use this Python package, matching versions on client and server is the straightforward way to stay compatible. Projects mixing languages should consult the chart rather than assuming latest on each side will work together.
Documentation, contributor guidance, and a security policy ship with the project for teams adopting the library in production services.
Key features
- Python Socket.IO client and server
- WebSocket and long-polling transports
- Documented protocol version compatibility table
- Pairs with asyncio eventlet or gevent stacks
- Published security policy
- Contributor and documentation resources
Use cases
- Realtime dashboards in Python web apps
- Bridging browser clients to Python backends
- Low-latency push updates over Socket.IO
- Matching Python services to JS Socket.IO apps