MessageTransportObserver.messageTransport() Overload 1

DESCRIPTION

Callback invoked when a message is received from the Camera.

DECLARATION

func messageTransport(_ transport: MessageTransport, didGet message: WebrtcSignalingMessage) async

PARAMETERS

transport:
The MessageTransport that received the message
message:
The received message.

Overload 2

DESCRIPTION

Callback invoked if an error occurs in the MessageTransport.

DECLARATION

func messageTransport(_ transport: MessageTransport, didError error: Error) async

PARAMETERS

transport:
The MessageTransport that emitted the error
error:
The error that occurred.

Overload 3

DESCRIPTION

Callback invoked when the setup phase of the MessageTransport is concluded.

DECLARATION

func messageTransport(_ transport: MessageTransport, didFinishSetup iceServers: [SignalingIceServer]) async

PARAMETERS

transport:
The MessageTransport that finished its setup phase.
iceServers:
A list of ICE servers to use in Peer Connection.