Re: Is there a way to force a reconnection attempt?

56 views
Skip to first unread message

Jason Chen

unread,
Jul 4, 2012, 4:55:08 PM7/4/12
to sock...@googlegroups.com
1. I believe you can just call socket.connect() with your existing socket.

2. Socketio has a "max reconnection attempts" config: https://github.com/LearnBoost/Socket.IO/wiki/Configuring-Socket.IO

Best regards,
Jason Chen



On Wed, Jul 4, 2012 at 10:47 AM, dandruph <net7r...@gmail.com> wrote:
1. The auto-reconnection system is great, but sometimes I want to short-circuit the exponential back-off and attempt a reconnection right now (for example, if the user clicks "Reconnect now"). Is there a way to do this with my existing socket, or do I need to create a new one?

2. Is there a way to set a maximum reconnection delay? I.e. "use exponential backoff, but never wait more than 3 mins between reconnection attempts"

Reply all
Reply to author
Forward
0 new messages