SignalingError.constructor

DESCRIPTION

This class represents a signaling error.

DECLARATION

constructor(public errorCode: string, public errorMessage?: string, public cause?: unknown)

PARAMETERS

errorCode:
The error code for the error. The message will then provide the details.
errorMessage:
The error message which can be sent over the network to the other peer.
cause:
the cause of the error, often the error in the catch(e), this can be used for logging purposes.