Browser Clients
If you are connecting from a browser, you must use theSec-WebSocket-Protocol header during the WebSocket handshake.
The header must specify the SukiAmbientAuth protocol, followed by the session ID and the token in the following format:
Non-Browser Clients
If you are connecting from a non-browser client, such as a mobile or server-side application, you must provide the token and session ID as separate HTTP headers in the initial WebSocket upgrade request.-
sdp_suki_token: Your Suki token. -
ambient_session_id: The ID for the current session.
Code Examples
- Python
- TypeScript