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


Download files

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

Files for websocket_client, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size websocket-client-0.3.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page