onreconnecting(callback) {
        if (callback) {
            this._reconnectingCallbacks.push(callback);
        }
    }
/** Registers a handler that will be invoked when the connection starts reconnecting.
     *
     * @param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).
     */
Registers a handler that will be invoked when the connection starts reconnecting.
@param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).
Registers a handler that will be invoked when the connection starts reconnecting . @param { Function } callback The handler that will be invoked when the connection starts reconnecting . Optionally receives a single argument containing the error that caused the connection to start reconnecting ( if any ) .
onreconnecting(callback) {
        if (callback) {
            this._reconnectingCallbacks.push(callback);
        }
    }
onreconnecting ( callback ) { if ( callback ) { this . _reconnectingCallbacks . push ( callback ) ; } }
Registers a handler that will be invoked when the connection starts reconnecting.
Registers a handler that will be invoked when the connection starts reconnecting .