iced/examples/websocket
Ian Douglas Scott be9cd3a09f Use once_cell instead of lazy_static
This seems to be generally considered the preferred, idiomatic solution
now. This is in the standard library behind a feature flag (apparently
now called `std::sync::LazyLock`).
2022-10-28 15:58:21 -07:00
..
src Use once_cell instead of lazy_static 2022-10-28 15:58:21 -07:00
Cargo.toml Use once_cell instead of lazy_static 2022-10-28 15:58:21 -07:00
README.md Update README file of websocket example 2022-01-16 19:59:59 +07:00

Websocket

A simple example that keeps a WebSocket connection open to an echo server.

The example consists of 3 modules:

  • main contains the Application logic.
  • echo implements a WebSocket client for the echo::server with async-tungstenite.
  • echo::server implements a simple WebSocket echo server with warp.

You can run it with cargo run:

cargo run --package websocket