socketUrl or socketProxy is set, accessToken and authConfig are ignored — your proxy handles authentication.
Why proxy?
When using Client Credentials authentication, the token is a service-account token with access to all data within the same API Client. Exposing it in a browser means any user could access any other user’s data. Best practice: use the SDK on the backend only, and call your own backend endpoints from the frontend. If you need the SDK in the browser, proxy through your server so credentials never leave the backend.Using socketUrl
Point the component at your proxy endpoint:
Using socketProxy
For additional control over subprotocols and query parameters:
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | WebSocket proxy URL |
protocols | string[] | No | WebSocket subprotocols |
queryParameters | object | No | Query parameters appended to the URL |
Using with modular components
SetsocketUrl or socketProxy on <dictation-root>:
See also
- Authentication — direct authentication (no proxy)
- API Reference — full property tables for all components