src/danmu/bilibilitcp.js
/**
         * Writes handshake upon connection open
         * Performs health check periodically
         */
Writes handshake upon connection open
Performs health check periodically
Writes handshake upon connection open Performs health check periodically
onConnect() {
            this.socket && this.socket.write(this.handshake);
            this.healthCheck = setInterval(() => {
                if (new Date() - this.lastRead > 35000) {
                    this.close(false);
                }
            }, 5 * 1000);
        }
onConnect ( ) { this . socket && this . socket . write ( this . handshake ) ; this . healthCheck = setInterval ( ( ) => { if ( new Date ( ) - this . lastRead > 35000 ) { this . close ( false ) ; } } , 5 * 1000 ) ; }
Writes handshake upon connection open
 Performs health check periodically
Writes handshake upon connection open Performs health check periodically