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
When the client closes the connection, the close listener of the socket isn't called. In the following example, the output is:
client.open()
mockServer.connection()
const{ Server }=require("mock-socket");constfakeURL="ws://localhost:9090/jsonrpc";constmockServer=newServer(fakeURL);mockServer.on("connection",(socket)=>{console.log("mockServer.connection()");socket.on("close",()=>{console.log("socket.close()");mockServer.close();});});constclient=newWebSocket(fakeURL);client.addEventListener("open",()=>{console.log("client.open()");client.close();});
The text was updated successfully, but these errors were encountered:
Hi,
When the client closes the connection, the
close
listener of thesocket
isn't called. In the following example, the output is:The text was updated successfully, but these errors were encountered: