MCPcopy
hub / github.com/socketio/socket.io / handler

Function handler

examples/nuxt-example/server/plugins/socket.io.ts:17–20  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

15
16 nitroApp.router.use("/socket.io/", defineEventHandler({
17 handler(event) {
18 engine.handleRequest(event.node.req, event.node.res);
19 event._handled = true;
20 },
21 websocket: {
22 open(peer) {
23 // crossws >= 0.3.0

Callers

nothing calls this directly

Calls 1

handleRequestMethod · 0.45

Tested by

no test coverage detected