You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exporttypePartyKitServer<Initial=unknown>={onConnect: (ws: WebSocket,room: PartyKitRoom)=>void|Promise<void>;onBeforeConnect?: (req: Request)=>Initial|Promise<Initial>;// this part is newonRequest?: (req: Request,room: PartyKitRoom)=>Response|Promise<Response>;onBeforeRequest?: (req: Request)=>void|Request|Promise<void|Request>;// ^ notice how this returns a Request, which is then passed to onRequest// giving you an opportunity to pass data in the request itself};
twitter thread with some more context https://twitter.com/partykit_io/status/1618620327915032576
The text was updated successfully, but these errors were encountered: