wsSendError(socket, connection, error, requestId) {
    const request = new Request({}, { connection, error });

    // If a requestId is provided we use it instead of the generated one
    request.id = requestId || request.id;

    const sanitized = removeStacktrace(request.response.toJSON()).content;

    this.wsSend(socket, Buffer.from(JSON.stringify(sanitized)));
  }
Forwards an error to a socket

@param  {uWS.WebSocket} socket
@param  {ClientConnection} connection
@param  {Error} error
@param  {String} requestId @optional