#tokio

yanked basws-client

A simple async WebSocket client/server framework

0.1.4 Feb 8, 2021
0.1.3 Feb 5, 2021
0.1.1 Jan 30, 2021
0.1.0-dev-8 Oct 20, 2020
0.1.0-dev-6 Sep 30, 2020

#3 in #basws

Download history 13/week @ 2023-11-12 40/week @ 2023-11-26 1/week @ 2023-12-03 12/week @ 2023-12-17 25/week @ 2023-12-24 13/week @ 2024-01-21 49/week @ 2024-01-28 2/week @ 2024-02-04 36/week @ 2024-02-11 270/week @ 2024-02-18

357 downloads per month
Used in basws

MIT license

27KB
580 lines

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.

Dependencies

~9–22MB
~337K SLoC