axum/examples
David Pedersen c9c507aece
Add support for websockets (#3)
Basically a copy/paste of whats in warp.

Example usage:

```rust
use tower_web::{prelude::*, ws::{ws, WebSocket}};

let app = route("/ws", ws(handle_socket));

async fn handle_socket(mut socket: WebSocket) {
    while let Some(msg) = socket.recv().await {
        let msg = msg.unwrap();
        socket.send(msg).await.unwrap();
    }
}
```
2021-06-12 20:50:30 +02:00
..
websocket Add support for websockets (#3) 2021-06-12 20:50:30 +02:00
hello_world.rs Make Request<Body> an extractor 2021-06-09 09:42:06 +02:00
key_value_store.rs Make Request<Body> an extractor 2021-06-09 09:42:06 +02:00
static_file_server.rs More docs and expand key_value_store example 2021-06-08 12:43:16 +02:00
websocket.rs Add support for websockets (#3) 2021-06-12 20:50:30 +02:00