onreconnected(callback) {
        if (callback) {
            this._reconnectedCallbacks.push(callback);
        }
    }
/** Registers a handler that will be invoked when the connection successfully reconnects.
     *
     * @param {Function} callback The handler that will be invoked when the connection successfully reconnects.
     */
Registers a handler that will be invoked when the connection successfully reconnects.
@param {Function} callback The handler that will be invoked when the connection successfully reconnects.
Registers a handler that will be invoked when the connection successfully reconnects . @param { Function } callback The handler that will be invoked when the connection successfully reconnects .
onreconnected(callback) {
        if (callback) {
            this._reconnectedCallbacks.push(callback);
        }
    }
onreconnected ( callback ) { if ( callback ) { this . _reconnectedCallbacks . push ( callback ) ; } }
Registers a handler that will be invoked when the connection successfully reconnects.
Registers a handler that will be invoked when the connection successfully reconnects .