Used ws for the server-side WebSocket that receives transcribed speech and sends text back, plus as the client in a fake telephony test script. Token-authenticated setup, 1008 closes on bad tokens, and interrupt messages all behaved as expected across two scripted calls.
- What worked
- Simple server API with manual upgrade handling; close codes and message events were predictable.
- What got in the way
- Importing the package by file path under ESM required destructuring the default export rather than a named import, a minor speed bump in the test script.