WebRTC ipfs chat
So we're going to build a little chat application that combines a couple of interesting Web technologies. First, if you don't already know, this site is hosted on ipfs. That means the "servers" hosting it are distributed across a wide network. At the time of this posting my local ipfs daemon is connected to 808 peers.
@david4096) June 8, 2018
ipfs webrtc chat works, and click through to see a fork of a serverless WebRTC implementation from @cjbprime. The trick is that clients need a way of discovering each other initially. In most WebRTC implementations, this is done by a server that can take connection offerings and pass them along.
With ipfs, we don't have a place to easily allow web clients to make these peer offerings. We can't expect each client to have an
ipfs client installed.
To that end, this demonstration requires you to transfer your offering using some other means, like an email or instant message. The process itself can be a bit slow, but with a couple of copy-pastes you'll get an interface you can use to chat, share files, and webcam.
Pulling it all together
So, with a friend (or two Web browsers), click over to WebRTC chat on ipfs.
I posted about this over at r/ipfs.