Skip to content

Class: Rejection ​

Defined in: server/room.ts:21

Thrown by a hook to refuse a command, a join or a leave. The reason is sent to the client.

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new Rejection(reason): Rejection;

Defined in: server/room.ts:25

Parameters ​

ParameterType
reasonstring

Returns ​

Rejection

Overrides ​

Error.constructor

Properties ​

PropertyModifierTypeDescriptionDefined in
reasonreadonlystringSent to the client as the reason.server/room.ts:23

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