This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

onmessage

Summary

An event listener to be called when a message is received.

Property of apis/webrtc/RTCDataChannelapis/webrtc/RTCDataChannel

Syntax

var result = object.onmessage;
object.onmessage = value;

Return Value

Returns an object of type

EventHandler

Related specifications

W3C Web RTC Specification
W3C Editor’s Draft