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
{{ message }}
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
Desc:
'disconnect' event is not triggered after the socket is closed. After I check the disconnect event is missing in the event list in the EventEmitter.
17:20:33.702 emit {error: ƒ, connect: ƒ, response: ƒ, disconnect} connect
17:20:33.718 subscribe to to channel
17:20:33.719 status$: ON
17:20:33.764 emit {error: ƒ, connect: ƒ, response: ƒ} response
I've tried to check if off in the EventEmitter is triggered, but it's not.
The text was updated successfully, but these errors were encountered:
@ramjak i have run tests locally and seems like everything works correctly
First is calling close socket from frontend (works ok)
<script>
let socket = new ClusterWS({url: 'ws://localhost:3000'});
socket.on("disconnect", (code, error) =>{console.log("Should be called",code,error);});
setTimeout(() =>{console.log("Close socket");socket.disconnect();}, 5000)
</script>
and second i tied calling close from back end (also works ok)
<script>
let socket = new ClusterWS({url: 'ws://localhost:3000'});
socket.on("disconnect", (code, error) =>{console.log("Should be called",code,error);});
</script>
Submitting
Using:
Desc:
'disconnect' event is not triggered after the socket is closed. After I check the disconnect event is missing in the event list in the EventEmitter.
I've tried to check if off in the EventEmitter is triggered, but it's not.
The text was updated successfully, but these errors were encountered: