Event Types
BotAction
Defines a union type for all the possible common events.
A BotAction can be one of the following values:
RemoteAction
An event that is used to send events from this device to a remote device.
Members
allowBatching? boolean
Whether this action is allowed to be batched with other remote actions. Batching will preserve ordering between remote actions but may break ordering with respect to bot actions. Defaults to true.
broadcast? boolean
Whether the event should be broadcast to all users.
connectionId? string
The ID of the connection that the event should be sent to.
sessionId? string
The ID of the session that the event should be sent to.
taskId? (string | number)
The ID of the task.
type "remote"
uncopiable? boolean
Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.
userId? string
The ID of the user that the event should be sent to.