sendMessage (message) {
    const response = this.handler.serialize(message)

    const header = new DataView(new ArrayBuffer(HEADER_SIZE))
    header.setUint32(1, response.byteLength)

    this._ws.send(
      Buffer.concat([
        new Uint8Array(header.buffer, header.byteOffset, header.byteLength),
        response
      ], header.byteLength + response.byteLength)
    )

    this.sendTrailer()
  }
/**
   * @param {object} message - A message object to send to the client
   */
@param {object} message - A message object to send to the client
@param { object } message - A message object to send to the client
sendMessage (message) {
    const response = this.handler.serialize(message)
    const header = new DataView(new ArrayBuffer(HEADER_SIZE))
    header.setUint32(1, response.byteLength)
    this._ws.send(
      Buffer.concat([
        new Uint8Array(header.buffer, header.byteOffset, header.byteLength),
        response
      ], header.byteLength + response.byteLength)
    )
    this.sendTrailer()
  }
sendMessage ( message ) { const response = this . handler . serialize ( message ) const header = new DataView ( new ArrayBuffer ( HEADER_SIZE ) ) header . setUint32 ( 1 , response . byteLength ) this . _ws . send ( Buffer . concat ( [ new Uint8Array ( header . buffer , header . byteOffset , header . byteLength ) , response ] , header . byteLength + response . byteLength ) ) this . sendTrailer ( ) }
@param {object} message - A message object to send to the client
@param { object } message - A message object to send to the client