Patient audio source
Patient WebSocket. It automatically stops and finalizes its source when the doctor requests Patient Audio Off.
Read the complete multi-source protocol guide. Copy all shared values and the complete expected-source list from the doctor page. The API key is never saved.
Shared consultation
Patient source
Important: Keep these source IDs unchanged for this consultation. Use the same shared values as the doctor page. Connecting the same source twice returns duplicate_source.
Copy the shared values from the doctor page. The first page opened also stores them in this browser's local storage.
Example init payload
Controls
Patient workflow and important notes
- Copy the API key and all shared consultation values from the doctor page. Doctor and patient source IDs must be unique and both must appear in
expected_sources. - Select Refresh from fields to verify the complete patient
initpayload, includingprotocol_version, category, language, and recorder MIME type. - Select Connect, wait for
source.accepted, and then start the microphone. - The recorder sends binary audio—not JSON or Base64—every five seconds. Confirm delivery through
chunk.ackevents. - Patient Audio Off flushes the final recorder chunk and sends
source.stopwith a client timestamp. - If the doctor disables this source, the page handles
source.stop_requestedautomatically and finalizes the patient audio within the server grace period.
Permissions: a patient socket cannot send source.disable or session.complete. Those operations belong to a doctor source.
Security: the API key is sent only in init, redacted from the event log, and never saved to local storage or placed in the URL.