Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-engineio-client-1.1.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file python-engineio-client-1.1.tar.gz.

File metadata

File hashes

Hashes for python-engineio-client-1.1.tar.gz
Algorithm Hash digest
SHA256 f35a8fb2e5dac6ad4ef93cf09171d118a0a33284e1bf2b36f750616872f3f055
MD5 36b5fd070b42f012d2c393d5660249fe
BLAKE2b-256 8ef8ba54fe922fde20b7778a2f2aff0f2cd87d31ef1cb5f0a20efa00aeb23444

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page