sendSubscriberIceCandidate method

  1. @override
void sendSubscriberIceCandidate({
  1. required RTCIceCandidate candidate,
  2. required String targetId,
  3. required ConnectionType connectionType,
  4. required String roomId,
})
override

Implementation

@override
void sendSubscriberIceCandidate({
  required RTCIceCandidate candidate,
  required String targetId,
  required ConnectionType connectionType,
  required String roomId,
}) {
  _socket?.emit(WsEvent.roomSubscriberCandidate, {
    'targetId': targetId,
    'candidate': candidate.toMap(),
    'connectionType': connectionType.index,
    'roomId': roomId,
  });
}