src/danmu/bilibilitcp.js
/**
         * Binds callbacks to `this` object
         */
Binds callbacks to `this` object
Binds callbacks to ` this ` object
bind() {
            this.onData = this.onData.bind(this);
            this.onConnect = this.onConnect.bind(this);
            this.onMessage = this.onMessage.bind(this);
            this.onError = this.onError.bind(this);
            this.onClose = this.onClose.bind(this);
        }
bind ( ) { this . onData = this . onData . bind ( this ) ; this . onConnect = this . onConnect . bind ( this ) ; this . onMessage = this . onMessage . bind ( this ) ; this . onError = this . onError . bind ( this ) ; this . onClose = this . onClose . bind ( this ) ; }
Binds callbacks to `this` object
Binds callbacks to ` this ` object