Skip to content

Function: routeToMatchmaker() ​

ts
function routeToMatchmaker(request, options): Promise<Response | null>;

Defined in: server/gateway.ts:162

Forwards {prefix}/{queue} WebSocket upgrades to a matchmaker. Each queue name is its own Durable Object, so /matchmaking/ranked and /matchmaking/casual fill separately. Returns null for other URLs.

Parameters ​

ParameterType
requestRequest
optionsMatchmakerRouteOptions

Returns ​

Promise<Response | null>

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.