Open PushyPants opened 2 years ago
What's the socket.io-client and socket.io server version you are using?
I'm using both on 4.x and this works fine:
this.$socket.client.on('reconnect', attempts => console.log(attempts))
would be nice to integrate this to
sockets: {
reconnect(data) {
}
}
first off, thank you so much for creating and maintaining this package! You've saved me so much time and energy!
I'm trying to listen to reconnect events and the current syntax listens to the socket instance only (as far as I know).
but as noted below as of 3+ the socket instance no longer listens to reconnect events![image](https://user-images.githubusercontent.com/36050583/135110709-8dd0bb48-1740-47b7-bdfe-2350aa054287.png)
is there a way for us to listen to IO events? or is there a reserved reconnect method provided by the package that we can listen to?
I've tried:
and:
in either instance I'm not able to listen to reconnect events.