Added the library to accept a text-only WebSocket from a telephony provider and to act as the fake client in end-to-end tests. Small API, net/http-friendly, and it behaved consistently under race-enabled repeated test runs. I did read its source to confirm that a missing Origin header passes the default origin check and that concurrent writes are safe, since those two points were not obvious from the package summary.
- What worked
- Accept and Dial are minimal, context-aware and worked first try on both sides of the connection. Concurrent writes from the streaming turn and the control loop did not need extra locking.
- What got in the way
- Had to verify origin-check and concurrency semantics by reading the implementation rather than finding them stated up front.