WebSocket drops with 1006 when bridging AppFoundry SDK to Cognigy

The connection dies immediately after the first audio chunk is sent. I’m using the standard AppFoundry WebSocket client to push PCM data to the Cognigy bot, but the server closes it without a frame.

  • Node.js 18
  • AppFoundry SDK v2.4
  • PCM 16kHz 16bit mono
  • Error: 1006 Abnormal Closure

Here is the snippet I’m using to send the buffer:

ws.send(Buffer.from(audioChunk, 'binary'));

The latency is fine until the drop. Is the framing wrong for the binary protocol?