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

Method handle

websockets/chat/src/session.rs:101–103  ·  view source on GitHub ↗
(&mut self, msg: server::Message, ctx: &mut Self::Context)

Source from the content-addressed store, hash-verified

99 type Result = ();
100
101 fn handle(&mut self, msg: server::Message, ctx: &mut Self::Context) {
102 ctx.text(msg.0);
103 }
104}
105
106/// WebSocket message handler

Callers

nothing calls this directly

Calls 2

stopMethod · 0.80
waitMethod · 0.80

Tested by

no test coverage detected