Guest API WebSocket connection dropping on message send

Building a custom chat UI using the WebSocket-based Guest API instead of the default widget. The connection establishes fine, but as soon as I send a message via the socket, it disconnects with code 1006. Here’s the payload I’m sending:

{"type": "message", "content": "hello", "timestamp": 1698765432}

Any idea what’s causing the immediate drop?