triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

disconnect event doesn't fire when server drops connection #77

Open uzarsalan opened 5 years ago

uzarsalan commented 5 years ago

Hi! When my server drops connection with authentication error or i stop server, this client doesn't fire "disconnect" event. But it's fires, when i call socketIO.disconnect() function.

triniwiz commented 5 years ago

you can try disconnecting the client from the server

peterforeman commented 5 years ago

Well, this hardly is a solution. If the socket gets disconnected because whatever reason (perhaps network problems) it should fire an event which, as @uzarsalan describes, currently does not.