src/danmu/bilibilitcp.js
/**
         * If pk is valid, wait and emit
         */
If pk is valid, wait and emit
If pk is valid wait and emit
onPkLottery(msg) {
            const data = msg['data'];
            if (data !== null) {
                this.emit('add_to_db');
                this.emit('roomid', this.roomid);
            }
            return data;
        }
onPkLottery ( msg ) { const data = msg [ 'data' ] ; if ( data !== null ) { this . emit ( 'add_to_db' ) ; this . emit ( 'roomid' , this . roomid ) ; } return data ; }
If pk is valid, wait and emit
If pk is valid wait and emit
// TODO