Skip to content

chiguireitor/python-engineio-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-engineio-client

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()

Another engine.io/socket.io client: socketIO_client

About

Engine.io client for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%