WebSocketAPI - v1.1.5-1 › Globals › "index" › SettingsInterface
- SettingsInterface
• maxLength: number
Defined in lib/index.ts:15
• on: object
Defined in lib/index.ts:23
-
error? : undefined | function
-
eventCompleted(): function
- (
event: ServerRequest): void
- (
-
eventReceived(): function
- (
event: ServerRequest): void
- (
• onAuthKey? : undefined | function
Defined in lib/index.ts:22
If the onAuthKey is set as a function then the request must be authenticated before more api calls will be answered
This function can be async and if it throws an error or returns false the client will be disconnected. A truthy response will register the api.