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
| Parameter | Type |
|---|---|
request | Request |
options | MatchmakerRouteOptions |
Returns
Promise<Response | null>