Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WebRTC for peer-to-peer data messaging

WebRTC for peer-to-peer data messaging

WebRTC is known as the technology enabling peer-to-peer audio and video calls in browsers. But its less explored feature is data channels. Data channels allow passing arbitrary data between web applications. In this session we'll explore WebRTC basics and code review a blockchain app that employs data channels for peer-to-peer nodes communication.

Anton Moiseev

November 05, 2019
Tweet

More Decks by Anton Moiseev

Other Decks in Programming

Transcript

  1. 2

  2. 3

  3. WebRTC • Set of protocols and APIs for real-rime communication

    • W3C and IETF standard • Supported by all major browser vendors • Features • Media streams (audio and video) • Data channels 9
  4. WebRTC History 2011 First draft of spec First cross-browser call

    First cross-browser data message 2013 02/2014 07/2014 First real-world app adoption (Hangouts) 10
  5. Notable Apps using WebRTC • Google Hangouts • Facebook Messenger

    • Discord • GoToMeeting Source: http://bit.ly/webrtc_apps 11
  6. 16

  7. 18

  8. 19

  9. 21