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

Class ChatServerHandle

websockets/chat-actorless/src/server.rs:227–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225/// Reduces boilerplate of setting up response channels in WebSocket handlers.
226#[derive(Debug, Clone)]
227pub struct ChatServerHandle {
228 cmd_tx: mpsc::UnboundedSender<Command>,
229}
230
231impl ChatServerHandle {
232 /// Register client message sender and obtain connection ID.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected