12 lines
245 B
Markdown
12 lines
245 B
Markdown
## Websocket
|
|
|
|
A simple example that keeps a WebSocket connection open to an echo server.
|
|
|
|
The __[`main`]__ file contains all the code of the example.
|
|
|
|
You can run it with `cargo run`:
|
|
```
|
|
cargo run --package websocket
|
|
```
|
|
|
|
[`main`]: src/main.rs
|