Please update the distribution files on
http://peerjs.com/, they are outdated.
I've spent a couple of hours debugging a problem which resulted in the peers closing connections to the PeerJS server after ~5 seconds. It resulted being a version compatibility problem (was using latest server, but outdated peers, because of the outdated files on the web).
Please update! And thanks for the awesome lib
Manuel