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

Uploaded Source

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