ws: include "type" field in RtcOffer and RtcAnswer

This commit is contained in:
Joakim Frostegård 2023-10-30 19:34:24 +01:00
parent 0789f7ec3b
commit c37bf89650
5 changed files with 25 additions and 1 deletions

View file

@ -16,6 +16,7 @@ pub fn bench(c: &mut Criterion) {
AnnounceRequestOffer {
offer: RtcOffer {
t: RtcOfferType::Offer,
sdp: ::serde_json::json!({ "sdp": "abcdef" }),
},
offer_id,
@ -33,6 +34,7 @@ pub fn bench(c: &mut Criterion) {
offers: Some(offers),
numwant: Some(offers_len),
answer: Some(RtcAnswer {
t: RtcAnswerType::Answer,
sdp: ::serde_json::json!({ "sdp": "abcdef" }),
}),
answer_to_peer_id: Some(peer_id),