websocket-client

Crates.iowebsocket-client
lib.rswebsocket-client
version0.2.1
sourcesrc
created_at2018-08-21 00:49:43.704065
updated_at2020-12-21 01:38:46.57876
descriptionA websocket client library which supports both desktop and webassembly
homepage
repositoryhttps://github.com/nstoddard/websocket-client
max_upload_size
id80507
size15,793
Nathan Stoddard (nstoddard)

documentation

README

A websocket client library which supports both desktop and webassembly. It's only been tested on Linux and wasm32-unknown-emscripten, but should work on other desktop platforms and other webassembly targets.

It uses a polling API for receiving messages, so it's probably most suitable for games, which would poll every frame. It may not be suitable for applications which need to respond to messages within milliseconds of receiving them, since the polling would add a slight delay.

This supports both text and binary data. On desktop, it uses websocket. On webassembly, it uses JavaScript through stdweb.

Commit count: 9

cargo fmt