Ankit-Aggarwal / SwiftyWebRTC

Swift Framework for WebRTC
MIT License
159 stars 32 forks source link

Datachannel to get data #31

Open sudhamoorthi opened 4 years ago

sudhamoorthi commented 4 years ago

i derived the below function to get the data from other device but the below method is not at all triggering

public func dataChannel(_ dataChannel: RTCDataChannel, didReceiveMessageWith didReceiveMessageWithBuffer: RTCDataBuffer) { print("dataChannelDidChangeState didReceiveMessageWith")

}

but the status change method is triggering as below

public func dataChannelDidChangeState(_ dataChannel: RTCDataChannel) {

}

Kindly support to resolve this issue

sudhamoorthi commented 4 years ago

I have included data channel in the existing code. But it is not working. Kindly support to include data channel along with audio.