WebSocket connection for A2A protocol
/ws?token={access_token}
const ws = new WebSocket( `wss://agent-{gateway-id}.noorle.com/ws?token=${token}` ); ws.onopen = () => { // Send message ws.send(JSON.stringify({ jsonrpc: "2.0", id: 1, method: "message/send", params: { message: "Hello" } })); }; ws.onmessage = (event) => { const response = JSON.parse(event.data); console.log(response); };