Skip to main content

WebSocket client for python

Project description

websocket-client module is WebSocket client for python. This provide the low level APIs for WebSocket. All APIs are the synchronous functions.

Installation

This module is tested on only Python 2.7. Type “python setup.py install” to install.

Example

from websocket import create_connection ws = create_connection(“ws://localhost:5000/echo”) print “Sending ‘Hello, World’…” ws.send(“Hello, World”) print “Sent” print “Reeiving…” result = ws.recv() print “Received ‘%s’” % result

Project details


Release history Release notifications | RSS feed

This version

0.3

Download files

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

Source Distribution

websocket-client-0.3.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file websocket-client-0.3.tar.gz.

File metadata

File hashes

Hashes for websocket-client-0.3.tar.gz
Algorithm Hash digest
SHA256 9f4b10f490045859414f2a3dac537df09ea16ad69c07bec48f8b2c6a8cb82535
MD5 4b46b3990ae64c551d776edd70616c25
BLAKE2b-256 0ad8fa25b5e4e7b45adc97faa427fed6e0acdf048ce36c8f4a8c11fe9270a87f

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page