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!
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
File details
Details for the file geode_solutions_wslink-1.3.tar.gz
.
File metadata
- Download URL: geode_solutions_wslink-1.3.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2671e75fe17ab0132b2993030b82d88b46b9aca1d9a9704cb4c9fbbeb4c7e6 |
|
MD5 | 339b6b10c41a3f541bfe32b1e5852fe6 |
|
BLAKE2b-256 | 29165ca1889e320743104c56bc0fcdca21d94130245408623c963a12256bec68 |