andrewn / neue-radio

Neue Radio: Prototype connected object using web technologies
10 stars 6 forks source link

Reconnect websocket on disconnect #44

Closed pixelblend closed 6 years ago

pixelblend commented 6 years ago

Waits half a second before attempting to reconnect.

Because subscriptions are stored elsewhere, there are only a few listeners to reattach on connection

andrewn commented 6 years ago

What's the behaviour if the there's a disconnection but the socket cannot reconnect when it tries? Does it retry again after half a second?

pixelblend commented 6 years ago

The new socket is created and the close event is bound. The event is then triggered if it can't connect and the cycle continues.

On 20 Feb 2018 13:46, "Andrew Nicolaou" notifications@github.com wrote:

What's the behaviour if the there's a disconnection but the socket cannot reconnect when it tries? Does it retry again after half a second?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewn/neue-radio/pull/44#issuecomment-366952911, or mute the thread https://github.com/notifications/unsubscribe-auth/AAI3SUOqqlsSSkuSpSaCSo0RE6uImC_Eks5tWrCngaJpZM4SLxWM .