MCPcopy Index your code
hub / github.com/dreamsofcode-io/chatly / handler

Function handler

src/main.rs:56–59  ·  view source on GitHub ↗
(axum::extract::State(io): axum::extract::State<SocketIo>)

Source from the content-addressed store, hash-verified

54}
55
56async fn handler(axum::extract::State(io): axum::extract::State<SocketIo>) {
57 info!("handler called");
58 let _ = io.emit("hello", "world");
59}
60
61#[tokio::main]
62async fn main() -> Result<(), Box<dyn std::error::Error>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected