This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

WebSocket: bufferedAmount 속성

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2015년 7월⁩.

참고 : 이 기능은 Web Worker에서 사용할 수 있습니다.

WebSocket.bufferedAmount 읽기 전용 속성은 send() 메서드 호출에 의해 대기열(큐)에 추가되었지만 아직 네트워크로 전송되지 않은 데이터의 바이트 수를 반환합니다. 대기열에 넣어진 모든 데이터가 전송되면 이 값은 0으로 재설정됩니다. 연결이 종료되어도 속성 값은 0으로 재설정되지 않습니다. send()를 계속 호출하면 해당 속성의 값은 계속적으로 증가합니다.

unsigned long 값입니다.

명세서

Specification
WebSockets
# ref-for-dom-websocket-bufferedamount①

브라우저 호환성