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
engineio-client-0.2.tar.gz
(7.1 kB
view details)
File details
Details for the file engineio-client-0.2.tar.gz.
File metadata
- Download URL: engineio-client-0.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cb5cde3a103db851412e75c093ed2271da46d8d25eff95f8b0c643f04bc7808
|
|
| MD5 |
eb4413d528fe2ca8ebf95c0253c0e2c0
|
|
| BLAKE2b-256 |
b7d56b9b500ae84d2c32d7a23dfd1195681a25f38917c52e910158426f104427
|