socket.io-unity icon indicating copy to clipboard operation
socket.io-unity copied to clipboard

No event is fired on disconnection

Open amsonline opened this issue 7 years ago • 0 comments

When the app connects to the server, everything is ok. But when I disconnect from my internet or close the server script, the event declared for EVENT_DISCONNECT is not being executed. I tried EVENT_CONNECT_ERROR, EVENT_RECONNECT_FAILED, EVENT_ERROR and EVENT_CONNECT_TIMEOUT, but none of them work. Also, when the app cannot connect to server, none of the events above work either.

Only when I manually disconnect the app from the server within the app itself, the code in EVENT_DISCONNECT is being triggered.

The plugin lacks a proper documentation and I cannot determine is it my fault or a bug in plugin itself.

amsonline avatar Mar 15 '18 15:03 amsonline