mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
improve ws protocol struct naming and documentation
This commit is contained in:
parent
b473bb6fba
commit
0789f7ec3b
17 changed files with 193 additions and 137 deletions
|
|
@ -15,7 +15,9 @@ pub fn bench(c: &mut Criterion) {
|
|||
offer_id.0[i] = i as u8;
|
||||
|
||||
AnnounceRequestOffer {
|
||||
offer: JsonValue(::serde_json::json!({ "sdp": "abcdef" })),
|
||||
offer: RtcOffer {
|
||||
sdp: ::serde_json::json!({ "sdp": "abcdef" }),
|
||||
},
|
||||
offer_id,
|
||||
}
|
||||
})
|
||||
|
|
@ -30,9 +32,11 @@ pub fn bench(c: &mut Criterion) {
|
|||
event: Some(AnnounceEvent::Started),
|
||||
offers: Some(offers),
|
||||
numwant: Some(offers_len),
|
||||
answer: Some(JsonValue(::serde_json::json!({ "sdp": "abcdef" }))),
|
||||
to_peer_id: Some(peer_id),
|
||||
offer_id: Some(OfferId(info_hash.0)),
|
||||
answer: Some(RtcAnswer {
|
||||
sdp: ::serde_json::json!({ "sdp": "abcdef" }),
|
||||
}),
|
||||
answer_to_peer_id: Some(peer_id),
|
||||
answer_offer_id: Some(OfferId(info_hash.0)),
|
||||
});
|
||||
|
||||
let ws_message = request.to_ws_message();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue