Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. RTCDataChannel
  4. ordered

RTCDataChannel: ordered property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨January 2020⁩.

The read-onlyRTCDataChannel propertyordered indicateswhether or not the data channel guarantees in-order delivery of messages;the default istrue,which indicates that the data channel is indeed ordered.This is set when theRTCDataChannel is created,by setting theordered propertyon the object passed asRTCPeerConnection.createDataChannel()'soptions parameter.

Value

A boolean value which istrue if in-order delivery isguaranteed and is otherwisefalse.

Example

js
const pc = new RTCPeerConnection();const dc = pc.createDataChannel("my channel");if (!dc.ordered) {  // Handle unordered messaging}

Specifications

Specification
WebRTC: Real-Time Communication in Browsers
# dom-datachannel-ordered

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp