Insist upon an "ordered" TCP data channel for delivery reliability.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 1444cfc630
commit dcdfcb0a6f

@ -166,8 +166,11 @@ class PeerConnectionClient: NSObject, RTCPeerConnectionDelegate, RTCDataChannelD
private func createSignalingDataChannel() { private func createSignalingDataChannel() {
AssertIsOnMainThread() AssertIsOnMainThread()
let configuration = RTCDataChannelConfiguration()
// Insist upon an "ordered" TCP data channel for delivery reliability.
configuration.isOrdered = true
let dataChannel = peerConnection.dataChannel(forLabel: Identifiers.dataChannelSignaling.rawValue, let dataChannel = peerConnection.dataChannel(forLabel: Identifiers.dataChannelSignaling.rawValue,
configuration: RTCDataChannelConfiguration()) configuration: configuration)
dataChannel.delegate = self dataChannel.delegate = self
assert(self.dataChannel == nil) assert(self.dataChannel == nil)

Loading…
Cancel
Save