Hey Guys,
Shortly after my last blog post on WebRTC -
WebRTC - The HTML5 late arrival - I realised Chrome and Firefox had both updated their implementations to include DataChannels, the part of WebRTC that allows peer-to-peer connections to be used for sending data packets.
Fantastic news, right? The Mozilla lot are all over it and I found plenty of resources on implementing it on Firefox however the information for Chrome is a bit all over the place and lacking one concise explanation, so having puzzled it out, I'm putting my solution here, going right from the first steps through to exchanging your first packet, accounting for Chrome's implementation.
Warning: This is a pretty wordy one, so if you aren't much of a skim reader or are totally new to the subject, you probably wanna go get yourself a cup of tea first... go on, I'm not going anywhere!