basws-client

Crates.iobasws-client
lib.rsbasws-client
version0.1.4
sourcesrc
created_at2020-09-15 22:06:58.169188
updated_at2021-02-08 18:34:16.749076
descriptionA simple async WebSocket client/server framework
homepage
repositoryhttps://github.com/khonsulabs/basws
max_upload_size
id289244
size17,621
Jonathan Johnson (ecton)

documentation

README

basws-client

crate version

basws-client is a simple WebSocket framework. For more information, see the basws README.

To set up your own protocol client:

  • Implement the ClientLogic trait
  • Create a Client passing in your ClientLogic implementor
  • Spawn the client by either client.run().await or client.spawn()
  • You can clone the client and pass it around in your application as needed

For a full example, check out the chat-client example.

Commit count: 59

cargo fmt