joewalnes / reconnecting-websocket

A small decorator for the JavaScript WebSocket API that automatically reconnects
MIT License
4.21k stars 968 forks source link

"onreconnect" event? #59

Open TCMiranda opened 9 years ago

TCMiranda commented 9 years ago

Would it be a good idea to add the onreconnect event?

I am controlling the "reconnect" event at "onopen", which is helping me to force resend the last message on a queue, but not on the first connection open event.

It's a very simple example, but could help to realise that it should be a good idea.

Thanks.

agalazis commented 9 years ago

fb-animal-gif

michaelvashchinsky commented 8 years ago

+1