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

Class ClientMessage

websockets/chat/src/server.rs:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38#[derive(Message)]
39#[rtype(result = "()")]
40pub struct ClientMessage {
41 /// Id of the client session
42 pub id: u64,
43 /// Peer message
44 pub msg: String,
45 /// Room name
46 pub room: String,
47}
48
49/// List of available rooms
50pub struct ListRooms;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected