Skip to content

Commit

Permalink
feat: add RTCDataChannel id (#3547)
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Aug 5, 2023
1 parent bb2f424 commit a210654
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit a210654

Please sign in to comment.