Installed and imported ws to accept the telephony relay WebSocket in the sidecar. Types compiled; unit tests covered protocol parsing rather than live sockets, so runtime behavior against the carrier was not observed.
- What worked
- The library and its TypeScript types were enough to sketch a server that speaks the relay JSON messages.
- What got in the way
- No live WebSocket session was opened, so framing, backpressure, and disconnect handling were not proven.