OptionalAbandonOptional. Drops an expectation whose createCall failed (nothing will ever connect).
OptionalBindOptional. Maps the correlation id to the real call UUID once createCall has resolved.
Discards the call's queued outbound audio (sends Vonage's {"action":"clear"} text command).
OptionalExpectOptional. Registers the media token for an OUTBOUND call before createCall is issued, keyed by a
correlation id (the call UUID is not known until Vonage responds, yet the media socket may connect
first). A pump that does not authenticate sockets may omit the three outbound-correlation hooks.
Registers the inbound PCM16 audio handler for the call's binary media frames.
Registers the inbound control-event handler for the call's JSON text frames (DTMF / connected / close).
Sends one outbound PCM16 audio frame as a BINARY websocket message (raw L16 PCM, no envelope).
The bidirectional WebSocket media pump for a single call's media leg, modeling Vonage's binary-audio / text-event split. Production wires this over the accepted websocket for the call UUID (binary frames = L16 PCM audio, text frames = JSON control events); tests inject a fake. Audio is raw PCM
ArrayBuffers — no envelope, no transcode — so RealVonageBindings just forwards bytes.