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

Class ChatServer

websockets/chat/src/server.rs:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 rooms,
70 visitor_count,
71 }
72 }
73}
74
75impl ChatState {
76 /// Send message to all users in the room
77 fn send_message(&self, room: &str, message: &str, skip_id: u64) {
78 if let Some(sessions) = self.rooms.get(room) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected