MCPcopy Create free account
hub / github.com/Botloader/botloader / send_event

Method send_event

components/webapi/src/routes/ws.rs:313–316  ·  view source on GitHub ↗
(&mut self, evt: WsEvent)

Source from the content-addressed store, hash-verified

311 }
312
313 async fn send_event(&mut self, evt: WsEvent) -> WsResult {
314 let encoded = serde_json::to_string(&evt).map_err(|_| WsCloseReason::JsonEncodeError)?;
315 self.send(Message::Text(encoded)).await
316 }
317}
318
319#[allow(clippy::large_enum_variant)]

Callers 3

handle_inner_log_itemMethod · 0.45
do_loginMethod · 0.45
emit_subscriptionsMethod · 0.45

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected