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 ParaViewWeb. 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!
License
Free to use in open-source and commercial projects, under the BSD-3-Clause license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wslink-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdcaf61d31afb84f5a16164be4993592609dcba6d67b66fc9c37be8135150a98 |
|
MD5 | 16ac66f90c43b8240e82ff4a66a12406 |
|
BLAKE2b-256 | 11bff7214dfd45ca8051dce823243c437f3a8e3f14b863c90e2613e02b964311 |