12. APPLICATIONS THAT USE P2P
> Communication Skype, Hangouts
> Music Spotify
> OS Windows Update
> Game Updates Blizzard, EVE Online
> Content Delivery Network PeerCDN
25. DATA CHANNEL API
var channel = peer.createDataChannel()
channel.send('hi')
channel.addEventListener('message', function (event) {
console.log('got message: ' + event.data)
})
26. THE ONLY P2P TRANSPORT
THAT WORKS IN THE BROWSER
37. var WebTorrent = require('webtorrent')
var client = new WebTorrent()
client.add('magnet:...', function (torrent) {
var file = torrent.files[0]
// Display the file by adding it to the DOM.
// Supports video, audio, image files, and more!
file.appendTo('body')
})
41. HTTP/UDP TRACKERS
1. Send message to tracker (info hash, IP address, port)
2. Receive response with list of peers
3. Tracker adds you to list of peers