Skip to content

Interface: RoomNamespace ​

Defined in: server/gateway.ts:43

The part of a Durable Object namespace Tickflare needs to reach rooms and matchmakers. Any namespace binding fits, e.g. env.ROOMS.

Methods ​

idFromName() ​

ts
idFromName(name): DurableObjectId;

Defined in: server/gateway.ts:45

The id of the object with this name.

Parameters ​

ParameterType
namestring

Returns ​

DurableObjectId


get() ​

ts
get(id, options?): {
  fetch(request): Promise<Response>;
};

Defined in: server/gateway.ts:47

A stub for the object with this id.

Parameters ​

ParameterType
idDurableObjectId
options?DurableObjectNamespaceGetDurableObjectOptions

Returns ​

NameTypeDescriptionDefined in
fetch()(request) => Promise<Response>Sends the object a request.server/gateway.ts:52

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