Python implementation of the engine.io client.
Design & goals
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.
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()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.