Interface: MatchmakerRouteOptions
Defined in: server/gateway.ts:148
How routeToMatchmaker finds queues and decides who may join them.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
matchmakers | RoomNamespace | Durable Object namespace of your Matchmaker class, e.g. env.MATCHMAKERS. Each queue is one object in it. | server/gateway.ts:150 |
prefix? | string | URL prefix queues live under. Defaults to /matchmaking. | server/gateway.ts:152 |
Methods
authenticate()
ts
authenticate(request, queue):
| Response
| Authenticated
| Promise<Response | Authenticated>;Defined in: server/gateway.ts:154
Same contract as for rooms: the player's id (or { id, name }), or a Response to refuse. queue is the queue name.
Parameters
| Parameter | Type |
|---|---|
request | Request |
queue | string |
Returns
| Response | Authenticated | Promise<Response | Authenticated>