WebSockets
Actix Web supports a high-level WebSocket interface via the actix-ws
crate. Using this crate, it's possible to convert a request's Payload
stream into a stream of ws::Messages and then react to them inside a spawned async task.
The following is an example of a simple WebSocket echo server:
A simple WebSocket echo server example is available in the examples repo.
An example chat server is also available in the examples directory