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. It’s been available across browsers since 2015년 7월.
MessageEvent 는 WebSocket 또는 WebRTC RTCDataChannel 으로 된 타겟으로 부터 전달받은 메시지를 보여주는 interface 입니다.
이 이벤트는 WebSocket.onmessage 또는 RTCDataChannel.onmessage 으로 설정된 이벤트 핸들러를 통해 실행이 되게 됩니다.
참고 : 이 기능은 Web Worker에서 사용할 수 있습니다.
새로운 MessageEvent를 생성합니다.
이 interface는 부모 객체인 Event의 속성을 상속받습니다.
MessageEvent.data 읽기 전용emitter에 의해 보내진 데이터인 DOMString, Blob 또는 ArrayBuffer를 포함합니다.
MessageEvent.originDOMString 입니다.…
MessageEvent.ports…
MessageEvent.source…
이 interface는 부모 객체인 Event의 메서드를 상속받습니다.
MessageEvent.initMessageEvent()… 더 이상 사용하지 마십시오 : MessageEvent() 생성자를 대신 사용하십시오.
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 12월 17일 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.