Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add RTCDataChannel id #3547

Merged
merged 4 commits into from
Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/web-sys/src/features/gen_RtcDataChannel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"]
pub fn label(this: &RtcDataChannel) -> String;
# [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = id)]
#[doc = "Getter for the `id` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/id)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"]
pub fn id(this: &RtcDataChannel) -> Option<u16>;
# [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = reliable)]
#[doc = "Getter for the `reliable` field of this object."]
#[doc = ""]
Expand Down
1 change: 1 addition & 0 deletions crates/web-sys/webidls/enabled/RTCDataChannel.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ enum RTCDataChannelType {
interface RTCDataChannel : EventTarget
{
readonly attribute DOMString label;
readonly attribute unsigned short? id;
readonly attribute boolean reliable;
readonly attribute unsigned short? maxPacketLifeTime;
readonly attribute unsigned short? maxRetransmits;
Expand Down