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
varws=newWebSocket(url);vartimeout=setTimeout(function(){// Testing if it worked.},30000);ws.onmessage=function(){clearTimeout(timeout);};
This scenario happens with some socket.io logout libraries. The web socket message doesn't happen within a Zone, so the clearTimeout call doesn't cause the setTimeout's task to complete.
The fix is to make sure that websocket messages are wrapped within a Zone.
The text was updated successfully, but these errors were encountered:
Consider this code:
This scenario happens with some socket.io logout libraries. The web socket message doesn't happen within a Zone, so the
clearTimeout
call doesn't cause the setTimeout's task to complete.The fix is to make sure that websocket messages are wrapped within a Zone.
The text was updated successfully, but these errors were encountered: