Skip to main content

Barebones socket.io client library

Project description

Here is a barebones socket.io client library for Python.

Thanks to rod for his StackOverflow question and answer, on which this code is based.

Thanks also to liris for his websocket-client and to guille for the socket.io specification.

Installation

# Prepare isolated environment
ENV=$HOME/Projects/env
virtualenv $ENV
mkdir $ENV/opt

# Activate isolated environment
source $ENV/bin/activate

# Install package
easy_install -U socketIO-client

Usage

ENV=$HOME/Projects/env
source $ENV/bin/activate
python

    from socketIO import SocketIO
    s = SocketIO('localhost', 8000)
    s.emit('news', {'hello': 'world'})

0.1

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

socketIO-client-0.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file socketIO-client-0.1.tar.gz.

File metadata

File hashes

Hashes for socketIO-client-0.1.tar.gz
Algorithm Hash digest
SHA256 9994d2ba7de633219c5318ec44fb9b9b6e8bef99a18027f2b5fec0fd39eaf525
MD5 2955612de91e1126bfac26e85c58eb43
BLAKE2b-256 9bace107690aad96e52c2401030d742f9c71121dec97049c7247bb4ff5db447a

See more details on using hashes here.

Supported by

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