Open bluet opened 11 years ago
I use $socket->on( 'disconnect') and $socket->{conn}->on('disconnect'), both of them didn't triggered when I shutdown my PocketIO server.
seems that the only way to know when disconnected is setting $socket->{_client}->{handle}->{handle}->on_error (sub {say 'error'} ); and it's kinda ugly.... Any idea? BTW, are you using this module by yourself? How do you handle these kind of problem?
The client did nothing when server offline.
There's no way to set a callback when connection error.
I want it to reconnect when disconnected from server, anything I can do?