mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
ws: require offer/answer sdp field to be String, fix related code
This commit is contained in:
parent
c37bf89650
commit
d94936a50b
5 changed files with 8 additions and 12 deletions
|
|
@ -50,7 +50,7 @@ pub struct RtcOffer {
|
|||
/// Always "offer"
|
||||
#[serde(rename = "type")]
|
||||
pub t: RtcOfferType,
|
||||
pub sdp: ::serde_json::Value,
|
||||
pub sdp: String,
|
||||
}
|
||||
|
||||
/// Nested structure with SDP answer from https://www.npmjs.com/package/simple-peer
|
||||
|
|
@ -61,7 +61,7 @@ pub struct RtcAnswer {
|
|||
/// Always "answer"
|
||||
#[serde(rename = "type")]
|
||||
pub t: RtcAnswerType,
|
||||
pub sdp: ::serde_json::Value,
|
||||
pub sdp: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue