public void CreateDataChannel() { RTCDataChannelInit DataChannelInit = new RTCDataChannelInit(); var _dataChannel = PeerConnection.CreateDataChannel("Deneme", DataChannelInit); RTCDataChannel rTCDataChannel = (RTCDataChannel)_dataChannel; _rTCDataChannel = rTCDataChannel; _rTCDataChannel.OnOpen += _rTCDataChannel_OnOpen; }
public IDataChannel CreateDataChannel(string label, DataChannelConfiguration dataChannelConfiguration) { var dataChannel = _peerConnection.CreateDataChannel(label, dataChannelConfiguration.ToNative()); return(dataChannel == null ? null : new DataChannelNative(dataChannel)); }