//EventHandler for sending IceCandidate private void Peer_IceCandidateReadytoSend(string candidate, int sdpMlineindex, string sdpMid) { NodeDssSignaler.Message msg = new NodeDssSignaler.Message() { MessageType = NodeDssSignaler.Message.WireMessageType.Ice, Data = $"{candidate}|{sdpMlineindex}|{sdpMid}", IceDataSeparator = "|" }; }
//EventHandler for sending sdp-messages private void Peer_LocalSdpReadytoSend(string type, string sdp) { NodeDssSignaler.Message msg = new NodeDssSignaler.Message() { MessageType = NodeDssSignaler.Message.WireMessageTypeFromString(type), Data = sdp, IceDataSeparator = "|" }; signaler.SendMessageAsync(msg); }