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
| Parameter | Type |
|---|---|
reason | string |
Returns
Rejection
Overrides
Error.constructor
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
reason | readonly | string | Sent to the client as the reason. | server/room.ts:23 |