© 2026 Hedgehog Software, LLC
const pair = new WebSocketPair(); const [client, server] = Object.values(pair); this.ctx.acceptWebSocket(server); this.clients.push(client);
You must call one of accept() or state.acceptWebSocket() on this WebSocket before sending messages.