New peerjs interop

Can somebody give this a quick review?