WebrtcSignalingMessage.init()

DESCRIPTION

Construct a WebRTC Signaling message from a SignalingCandidate or a SignalingDescription.

A WebrtcSignalingMessage can only contain one of the two, so either the candidate or the description must be nil.

DECLARATION

public init(candidate: SignalingCandidate? = nil, description: SignalingDescription? = nil)

PARAMETERS

candidate:
The candidate if this is a candidate.
description:
The description if this is a description.