Send DC info for syncState (#88)

* dc private methods

* impl

* pub

* id

* fix test
This commit is contained in:
Hiroshi Horie
2022-04-02 15:09:02 +09:00
committed by GitHub
parent e7333174b5
commit 88b462432e
9 changed files with 45 additions and 22 deletions
+7
View File
@@ -53,6 +53,13 @@ extension ReliabilityExt on Reliability {
}[this]!;
}
extension RTCDataChannelExt on rtc.RTCDataChannel {
lk_rtc.DataChannelInfo toLKInfoType() => lk_rtc.DataChannelInfo(
id: id,
label: label,
);
}
extension RTCIceCandidateExt on rtc.RTCIceCandidate {
static rtc.RTCIceCandidate fromJson(String jsonString) {
final map = json.decode(jsonString) as Map<String, dynamic>;