A record is an alias for our netID pointint to IP address.
DNS lookup, takes time because it needs to be Cached around the internet.
Man in The Middle attack.
Somebody has access to data stream while it’s in transit.
Domain name, certificate from Cert authority (main ones: VeriSign, Thawte) that covers anything from *.itp.io
Watch the Public Key Cryptography Youtube video
CDN stands for content-delivery-network - as in tonjs.org (network of servers that have copies or caches of servers), you typically go to the server closes to you.
Dissecting home-work
We need to figure who ‘othermouse’ is. Socket has a unique_ID from the client side.
socket.on(‘othermouse’, function(data){
data.id = socket.id
socket.broadcast.emit
})
On the client side:
socket.on(‘othermouse’, function(req,res,id){
})
var foundUser = null;
for (var i = 0, i < users.length, i++){
if (users[i].id == id) {
webRTC is an HTML5 standard that allows access to microphone and video. Also offers, peer-to-peer connectivity between users (without going through a server). It also has a DataChannel (that’s just raw data that can be sent back and forth). Summary: audio data, video data, server-less-p2p connections, data-channel (socket). video & audio would be compressed formats (likeh264 for video). webRTC doesn’t have universal browser support. Only works on Chrome+Firefox.