Skip to main content

Python/JavaScript library for communicating over WebSocket

Project description

Wslink allows easy, bi-directional communication between a python server and a javascript client over a websocket. The client can make RPC calls to the server, and the server can publish messages to topics that the client can subscribe to. The server can include binary attachments in these messages, which are communicated as a binary websocket message, avoiding the overhead of encoding and decoding.

RPC and publish/subscribe

The initial users of wslink driving its development are VTK and ParaView. ParaViewWeb and vtkWeb require:

  • RPC - a remote procedure call that can be fired by the client and return sometime later with a response from the server, possibly an error.
  • Publish/subscribe - client can subscribe to a topic provided by the server, possibly with a filter on the parts of interest. When the topic has updated results, the server publishes them to the client, without further action on the client’s part.

Get the whole story

This package is just the server side of wslink. See the github repo for the full story - and to contribute or report issues!


Free to use in open-source and commercial projects, under the BSD-3-Clause license.

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 wslink, version 1.3.3
Filename, size File type Python version Upload date Hashes
Filename, size wslink-1.3.3.tar.gz (18.9 kB) File type Source Python version None Upload date Hashes View
Filename, size wslink-1.3.3-py3-none-any.whl (21.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page