Skip to content

Interface: MatchmakerRouteOptions ​

Defined in: server/gateway.ts:148

How routeToMatchmaker finds queues and decides who may join them.

Properties ​

PropertyTypeDescriptionDefined in
matchmakersRoomNamespaceDurable Object namespace of your Matchmaker class, e.g. env.MATCHMAKERS. Each queue is one object in it.server/gateway.ts:150
prefix?stringURL 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 ​

ParameterType
requestRequest
queuestring

Returns ​

| Response | Authenticated | Promise<Response | Authenticated>

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