An incoming message sent from the Krist server to a websocket client.

Hierarchy

Properties

address: KristAddress

The address the websocket connection is authenticated as.

error?: string

If ok is false, the error code from the Krist API.

id: number

The message ID that this is in response to. You typically do not need to do anything with this, the library will handle message replies automatically.

isGuest: false

Whether the websocket connection is currently a guest, false if authenticated.

message?: string

If ok is false, a human-readable error message from the Krist API.

ok: boolean

Whether the request succeeded.

parameter?: string

If ok is false, the parameter that caused the error (if available).

responding_to_type: KristWsMessageType

The type of message that the server is responding to.

type: "response"

The type of incoming message.

Generated using TypeDoc