MCPcopy
hub / github.com/partykit/partykit / onBeforeConnect

Method onBeforeConnect

examples/class/src/server.ts:18–20  ·  view source on GitHub ↗
(req: Party.Request)

Source from the content-addressed store, hash-verified

16 return req;
17 }
18 static async onBeforeConnect(req: Party.Request) {
19 return req;
20 }
21 // onFetch is now stable. No more unstable_onFetch
22 static async onFetch(req: Party.Request) {
23 return new Response("Unrecognized request: " + req.url, { status: 404 });

Callers 1

fetchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected