onSignal property

(dynamic Function(SignalingInfo)?) onSignal
getter/setter pair

Called when the peer wants to send signaling data to the remote peer.

It is the responsibility of the application developer (that's you!) to get this data to the other peer. This usually entails using a WebSocket signaling server. Then, simply call peer.signal(data) on the remote peer. Be sure to set this before calling connect to avoid missing any events.

Implementation

Function(SignalingInfo)? onSignal;