device.initialize
device.initialize
Section titled “device.initialize”Initialize the connection
Data Schema
Section titled “Data Schema”type: object
Properties
Section titled “Properties”| Name | Type | Required | Description |
|---|---|---|---|
deviceId | string | yes | Opaque stable identifier for the device. Typically randomly generated and stored on the device, or provided by the operating system. |
userAgent | string | no | Freeform text identifying the client platform/software |
subscriptions | string[] | yes | Define which kinds of realtime events this device wants to receive. |
Example
Section titled “Example”{ "kind": "device.initialize", "data": { "deviceId": "2ef22bf5-ab81-43d9-85c0-3cc942c0fda5", "userAgent": "Wysp iOS 1.0.47", "subscriptions": [ "utterances", "prompts", "tools" ] }}