TsgcRTCPeerConnection › Events

TsgcRTCPeerConnection Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Signalling (WebSocket)

NameDescription
OnRTCWebSocketBeforeConnectFired before the signalling WebSocket client connects; lets you tweak the client.
OnRTCWebSocketConnectFired when the signalling WebSocket has connected to the server.
OnRTCWebSocketDisconnectFired when the signalling WebSocket disconnects; the close code is provided.
OnRTCWebSocketRemoteDisconnectFired when the remote peer requests a disconnect via signalling.
OnRTCWebSocketMessageFired when a raw signalling text message is received on the WebSocket.

SDP / candidates

NameDescription
OnRTCLocalCandidateFired when a local ICE candidate has been gathered; set Accept to False to drop it.
OnRTCLocalDescriptionFired when the local SDP offer/answer has been generated and can be edited.
OnRTCRemoteCandidateFired when a remote ICE candidate is received; set Accept to False to drop it.
OnRTCRemoteDescriptionFired when the remote SDP offer/answer is received through signalling.
OnRTCCandidatePairNominatedFired when ICE connectivity checks nominate a candidate pair; set Accept to False to reject.
OnRTCCandidatePairFailedFired when an ICE candidate pair fails the connectivity check; the reason is provided.

Data channel

NameDescription
OnRTCConnectFired when the data channel is open and ready to send and receive data.
OnRTCMessageFired when data is received from the remote peer through the data channel.
OnRTCExceptionFired when an exception is raised inside the peer-connection pipeline.

All Events (alphabetical)

NameDescription
OnRTCCandidatePairFailedFired when an ICE candidate pair fails the connectivity check; the reason is provided.
OnRTCCandidatePairNominatedFired when ICE connectivity checks nominate a candidate pair; set Accept to False to reject.
OnRTCConnectFired when the data channel is open and ready to send and receive data.
OnRTCExceptionFired when an exception is raised inside the peer-connection pipeline.
OnRTCLocalCandidateFired when a local ICE candidate has been gathered; set Accept to False to drop it.
OnRTCLocalDescriptionFired when the local SDP offer/answer has been generated and can be edited.
OnRTCMessageFired when data is received from the remote peer through the data channel.
OnRTCRemoteCandidateFired when a remote ICE candidate is received; set Accept to False to drop it.
OnRTCRemoteDescriptionFired when the remote SDP offer/answer is received through signalling.
OnRTCWebSocketBeforeConnectFired before the signalling WebSocket client connects; lets you tweak the client.
OnRTCWebSocketConnectFired when the signalling WebSocket has connected to the server.
OnRTCWebSocketDisconnectFired when the signalling WebSocket disconnects; the close code is provided.
OnRTCWebSocketMessageFired when a raw signalling text message is received on the WebSocket.
OnRTCWebSocketRemoteDisconnectFired when the remote peer requests a disconnect via signalling.