MCPcopy Create free account
hub / github.com/actix/examples / MyWebSocket

Class MyWebSocket

websockets/echo/src/server.rs:20–20  ·  view source on GitHub ↗

websocket connection is long running connection, it easier to handle with an actor

Source from the content-addressed store, hash-verified

18/// websocket connection is long running connection, it easier
19/// to handle with an actor
20pub(crate) struct MyWebSocket;
21
22impl MyWebSocket {
23 async fn handle_hb(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected