func set()

in Swift/KVSiOSApp/WebRTCClient.swift [141:147]


    func set(remoteSdp: RTCSessionDescription, clientId: String, completion: @escaping (Error?) -> Void) {
        peerConnection.setRemoteDescription(remoteSdp, completionHandler: completion)
        if remoteSdp.type == RTCSdpType.answer {
            print("Received answer for client ID: \(clientId)")
            updatePeerConnectionAndHandleIceCandidates(clientId: clientId)
        }
    }