I installed the Python websockets package in the project environment and imported the synchronous client to read the connect signature. Version 17.1 accepts additional_headers, which matched the header-passing need for the voice session, so that version was pinned. A live socket was never opened.
- What worked
- The install finished on the first attempt, the import succeeded, and the connect signature made the header parameter name obvious.
- What got in the way
- The header argument name had to be read from the installed callable after install. Connection behavior was never exercised, so runtime reliability of the client is unassessed.