async _message(data) {
    if (data instanceof ArrayBuffer) data = Buffer.from(data);
    else if (Array.isArray(data)) data = Buffer.concat(data);
    let pk;
    try {
      pk = JSON.parse(data.toString());
    } catch (e) {
      this.manager.emit("socketError", this, e);
      return;
    }
    const player = this.manager.players.get(pk.guildId);
    if (pk.guildId && player) await player.emit(pk.op, pk);
    else if (pk.op === "stats") this.stats = pk;
  }
/**
   * Handles incoming messages from lavalink.
   * @since 1.0.0
   * @private
   */
Handles incoming messages from lavalink.
Handles incoming messages from lavalink .
async _message(data) {
    if (data instanceof ArrayBuffer) data = Buffer.from(data);
    else if (Array.isArray(data)) data = Buffer.concat(data);
    let pk;
    try {
      pk = JSON.parse(data.toString());
    } catch (e) {
      this.manager.emit("socketError", this, e);
      return;
    }
    const player = this.manager.players.get(pk.guildId);
    if (pk.guildId && player) await player.emit(pk.op, pk);
    else if (pk.op === "stats") this.stats = pk;
  }
async _message ( data ) { if ( data instanceof ArrayBuffer ) data = Buffer . from ( data ) ; else if ( Array . isArray ( data ) ) data = Buffer . concat ( data ) ; let pk ; try { pk = JSON . parse ( data . toString ( ) ) ; } catch ( e ) { this . manager . emit ( "socketError" , this , e ) ; return ; } const player = this . manager . players . get ( pk . guildId ) ; if ( pk . guildId && player ) await player . emit ( pk . op , pk ) ; else if ( pk . op === "stats" ) this . stats = pk ; }
Handles incoming messages from lavalink.
Handles incoming messages from lavalink .