This is a WebRTC implementation using WebSockets as a signaling channel.
Alternatively, check out a prior commit to try WebRTC without a signaling channel. Start a call, send the SDP offer and ICE candidates printed to the console to your friend, paste in their answer and candidates, then hit submit.