Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
RTCDataChannelEvent インターフェイスは、特定の RTCPeerConnection に関連するイベントを表します。
Event RTCDataChannelEvent新しい RTCDataChannelEvent を作成します。
Event のプロパティを継承しています。
channel 読取専用このイベントに関連付けられた RTCDataChannel を返します。
この例では、 datachannel イベントハンドラーを設定して、データチャンネルの参照を保存し、監視する必要があるイベントのハンドラーを設定しています。 channel プロパティは、他にもピアへの接続を表す RTCDataChannel を提供しています。
データチャンネルを使用する、より完全な別の例は、単純な RTCDataChannel の例を参照してください。
| WebRTC: Real-Time Communication in Browsers # rtcdatachannelevent |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024年3月3日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.