You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, I upgrade deno to 1.32.4. Websocket break in deno 1.32.4.
First message successfully send but cannot send message after timeout.
It work fine in deno 1.32.3.
const{ socket, response }=Deno.upgradeWebSocket(reqEvent.request);socket.onopen=()=>{console.log("socket opened");socket.send("Hello World!");};socket.onmessage=(e)=>{socket.send("message from client received");//this worksetTimeout(()=>{socket.send("message send after some time");//this doesn't work// socket.close();},2000);};socket.onclose=()=>console.log("WebSocket has been closed.");socket.onerror=(e)=>console.error("WebSocket error:",e);reqEvent.respondWith(response);
please fix this issue.
The text was updated successfully, but these errors were encountered:
Today, I upgrade deno to 1.32.4. Websocket break in deno 1.32.4.
First message successfully send but cannot send message after timeout.
It work fine in deno 1.32.3.
please fix this issue.
The text was updated successfully, but these errors were encountered: