| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/Web/API/RTCDataChannelEvent | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. Its been available across browsers since 2020 1.
RTCDataChannelEvent() datachannel RTCDataChannelEvent . RTCDataChannel , RTCPeerConnection .
WebRTC , RTCDataChannelEvent . RTCPeerConnection datachannel , RTCDataChannelEvent.channel .
RTCDataChannelEvent() RTCDataChannelEvent RTCDataChannelEvent() .
Event .
RTCDataChannelEvent.channel RTCDataChannelEvent.channel RTCDataChannel .
. , *Event* .
datachannel , . channel RTCDataChannel .
pc.ondatachannel = function (event) {
inboundDataChannel = event.channel;
inboundDataChannel.onmessage = handleIncomingMessage;
inboundDataChannel.onopen = handleChannelOpen;
inboundDataChannel.onclose = handleChannelClose;
};
A simple RTCDataChannel sample .
| Specification |
|---|
| WebRTC: Real-Time Communication in Browsers # rtcdatachannelevent |
RTCDataChannelRTCDataChannel.ondatachannelRTCPeerConnection (the target interface for datachannel events)This page was last modified on 2024 12 17 by MDN contributors.
RTCDataChannelEventMediaDevices.getUserMedia()Navigator.mediaDevicesRTCAudioSourceStatsRTCCertificateRTCCodecStatsRTCDTMFSenderRTCDTMFToneChangeEventRTCDataChannelRTCDataChannelStatsRTCDtlsTransportRTCEncodedAudioFrameRTCEncodedVideoFrameRTCErrorEventRTCIceCandidateRTCIceCandidatePairRTCIceCandidatePairStatsRTCIceCandidateStatsRTCIceParametersRTCIceTransportRTCInboundRtpStreamStatsRTCOutboundRtpStreamStatsRTCPeerConnectionRTCPeerConnectionIceErrorEventRTCPeerConnectionIceEventRTCPeerConnectionStatsRTCRemoteInboundRtpStreamStatsRTCRemoteOutboundRtpStreamStatsRTCRtpReceiverRTCRtpReceiver.transformRTCRtpScriptTransformRTCRtpScriptTransformerRTCRtpSenderRTCRtpSender.transformRTCRtpTransceiverRTCSctpTransportRTCSessionDescriptionRTCStatsReportRTCTrackEventRTCTransformEventRTCVideoSourceStatsYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |