Engine.IO client
Project description
Python implementation of the engine.io client.
Design & goals
This implementation is inspired by the JavaScript engine.io-client implementation.
Protocol parser is copied in parts and at least largely inspired from the package python-engineio written by Miguel Grinberg.
This engine.io client is using Gevent for now. This is not a strict design choice but a simplification for this first implementaion. Other asynchronous frameworks are welcome for future versions.
Example
from engineio_client.client import Client import gevent import gevent.monkey gevent.monkey.patch_all() eio = Client('localhost', 8000) @eio.on('message') def on_message(message): print message eio.close() @eio.on('open') def on_open(): eio.send("Hello") eio.open() gevent.wait()
Links
Another engine.io/socket.io client: socketIO_client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python-engineio-client-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00be125fba20275e5ad6ebcc449a39d45dfe115139bd74479fa31b32dc6f717 |
|
MD5 | 6b2ede66ce1d78da29e37e6f35a8ca35 |
|
BLAKE2b-256 | 457f2e0bed00cee4990a0b00b14579bd4c729bcd791664dfd8276dc3a431371e |