{"json_modified": "2016-05-20T12:40:23.875666", "uuid": "dac57cd0-72d8-4fa1-b284-a2283a54f77b", "title": "RTCPeerConnection.ondatachannel", "url": "/en-US/docs/Web/API/RTCPeerConnection/ondatachannel", "tags": ["Event Handler", "Property", "WebRTC", "Reference", "RTCPeerConnection", "Experimental", "ondatachannel"], "translations": [], "modified": "2016-05-20T12:40:24", "label": "RTCPeerConnection.ondatachannel", "localization_tags": [], "locale": "en-US", "id": 124479, "last_edit": "2016-05-20T12:40:19", "summary": "The RTCPeerConnection.ondatachannel
property is an EventHandler
which specifies a function which is called when the datachannel
event occurs on an RTCPeerConnection
. This event, of type RTCDataChannelEvent
, is sent when an RTCDataChannel
is added to the connection by the remote peer calling createDataChannel()
.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Value", "title": "Value"}, {"id": "Example", "title": "Example"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/RTCPeerConnection/ondatachannel", "review_tags": []}