src/danmu/bilibilitcp.js
/**
         * Upon closing, reset socket, optionally emits close event
         */
Upon closing, reset socket, optionally emits close event
Upon closing reset socket optionally emits close event
onClose() {
            this.reset();
            if (this.closed_by_user === false) {
                this.host.reportDisconnection();
                this.run();
            } else {
                this.emit('close');
            }
        }
onClose ( ) { this . reset ( ) ; if ( this . closed_by_user === false ) { this . host . reportDisconnection ( ) ; this . run ( ) ; } else { this . emit ( 'close' ) ; } }
Upon closing, reset socket, optionally emits close event
Upon closing reset socket optionally emits close event