Constructs a new RemoteParticipant.
The remote participant's ID.
The signaling interface for WebRTC setup.
The observer to notify of incoming messages.
Adds an ICE candidate to the peer connection.
The ICE candidate to add.
Handles an incoming offer and responds with an answer (callee).
The received RTC session description offer.
Initiates a WebRTC connection as the caller (creates offer and data channel).
Handles an incoming answer to a previously sent offer.
The received RTC session description answer.
Handles an incoming message from the data channel and notifies the observer.
The message event.
Sends a message to the remote participant via the data channel.
The sender's ID.
The action type.
The data payload.
RemoteParticipant manages a WebRTC peer-to-peer connection and data channel with a single remote player.