{"json_modified": "2016-04-06T14:21:55.170092", "uuid": "200e313e-7083-44d3-a62e-80b996a34dd1", "title": "A simple RTCDataChannel sample", "url": "/en-US/docs/Web/API/WebRTC_API/Simple_RTCDataChannel_sample", "tags": ["API", "Communication", "WebRTC", "Tutorial", "Example"], "translations": [], "modified": "2016-04-06T14:21:55", "label": "A simple RTCDataChannel sample", "localization_tags": [], "locale": "en-US", "id": 153619, "last_edit": "2016-04-06T14:21:49", "summary": "The RTCDataChannel interface is a feature of the WebRTC API which lets you open a channel between two peers over which you may send and receive arbitrary data. The API is intentionally similar to the WebSocket API, so that the same programming model can be used for each.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "The_HTML", "title": "The HTML"}, {"id": "The_JavaScript_code", "title": "The JavaScript code"}, {"id": "Starting_up", "title": "Starting up"}, {"id": "Establishing_a_connection", "title": "Establishing a connection"}, {"id": "Set_up_the_local_peer", "title": "Set up the local peer"}, {"id": "Set_up_the_remote_peer", "title": "Set up the remote peer"}, {"id": "Set_up_the_ICE_candidates", "title": "Set up the ICE candidates"}, {"id": "Start_the_connection_attempt", "title": "Start the connection attempt"}, {"id": "Handling_successful_peer_connection", "title": "Handling successful peer connection"}, {"id": "Connecting_the_data_channel", "title": "Connecting the data channel"}, {"id": "Handling_channel_status_changes", "title": "Handling channel status changes"}, {"id": "Sending_messages", "title": "Sending messages"}, {"id": "Receiving_messages", "title": "Receiving messages"}, {"id": "Disconnecting_the_peers", "title": "Disconnecting the peers"}, {"id": "Next_steps", "title": "Next steps"}], "slug": "Web/API/WebRTC_API/Simple_RTCDataChannel_sample", "review_tags": []}