The reconnect option is a function to determine whether to schedule reconnection on this disconnection or not so that it should receive information which has been accumulated so far this disconnection. However in the current implementation the wrong total number of reconnection attempt is passed to the option. At first disconnection, 1 is passed but it should be 0 because there has never been an attempt to reconnect.
A fix to this issue won't affect to waiting event hander's arguments as it works correctly. In summary, at first disconnection, reconnect option should receive null and 0 as arguments and if it returns 500 waiting event handler should receive 500 and 1 as arguments, information about reconnection scheduled by reconnect option.
The
reconnectoption is a function to determine whether to schedule reconnection on this disconnection or not so that it should receive information which has been accumulated so far this disconnection. However in the current implementation the wrong total number of reconnection attempt is passed to the option. At first disconnection,1is passed but it should be0because there has never been an attempt to reconnect.A fix to this issue won't affect to
waitingevent hander's arguments as it works correctly. In summary, at first disconnection,reconnectoption should receivenulland0as arguments and if it returns500waitingevent handler should receive500and1as arguments, information about reconnection scheduled byreconnectoption.