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

@ -37,11 +37,13 @@ mod tests {
fn rtc_offer() -> RtcOffer {
RtcOffer {
t: RtcOfferType::Offer,
sdp: ::serde_json::json!({ "sdp": "test" }),
}
}
fn rtc_answer() -> RtcAnswer {
RtcAnswer {
t: RtcAnswerType::Answer,
sdp: ::serde_json::json!({ "sdp": "test" }),
}
}