Creating a WebSocket server or a client in Rust can be troublesome. This crate facilitates this process by providing:
View the full documentation at docs.rs/ezsockets
simple-client
- a simplest WebSocket client which uses stdin as input.echo-server
- server that echoes back every message it receives.counter-server
- server that increments global value every second and shares it with clientchat-client
- chat client for chat-server
and chat-server-axum
exampleschat-server
- chat server with support of roomschat-server-axum
- same as above, but using axum
as a back-endtokio-tungstenite
is being used under the hood.
See examples/simple-client for a simple usage and docs.rs/ezsockets/server for documentation.
WebSocket server can use one of supported back-ends:
- tokio-tungstenite
- the simplest way to get started.
- axum
- ergonomic and modular web framework built with Tokio, Tower, and Hyper
- actix-web
- Work in progress at #22
See examples/echo-server for a simple usage and docs.rs/ezsockets/server for documentation.