onclose(reason) {
        debug("onclose");
        this.cleanup();
        this.backoff.reset();
        this._readyState = "closed";
        super.emit("close", reason);
        if (this._reconnection && !this.skipReconnect) {
            this.reconnect();
        }
    }
/**
     * Called upon engine close.
     *
     * @private
     */
Called upon engine close.
@private
Called upon engine close . @private
onclose(reason) {
        debug("onclose");
        this.cleanup();
        this.backoff.reset();
        this._readyState = "closed";
        super.emit("close", reason);
        if (this._reconnection && !this.skipReconnect) {
            this.reconnect();
        }
    }
onclose ( reason ) { debug ( "onclose" ) ; this . cleanup ( ) ; this . backoff . reset ( ) ; this . _readyState = "closed" ; super . emit ( "close" , reason ) ; if ( this . _reconnection && ! this . skipReconnect ) { this . reconnect ( ) ; } }
Called upon engine close.
Called upon engine close .