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

Method stopping

websockets/chat/src/session.rs:90–94  ·  view source on GitHub ↗
(&mut self, _: &mut Self::Context)

Source from the content-addressed store, hash-verified

88 }
89
90 fn stopping(&mut self, _: &mut Self::Context) -> Running {
91 // notify chat server
92 self.addr.do_send(server::Disconnect { id: self.id });
93 Running::Stop
94 }
95}
96
97/// Handle messages from chat server, we simply send it to peer websocket

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected