Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.82 KB

README.md

File metadata and controls

43 lines (24 loc) · 1.82 KB

stream-chat

A chat app using streams

Live at: http://raynos.stream-chat.jit.su/

The interesting bits

Demonstrates usage of using discoverynetwork.co to build distributed apps

Distributed peer to peer apps are served from static file servers and use a discovery network in the cloud to establish peer to peer connections (through a relay server due to browser limitations)

Open a connection to a cloud based discovery network. Then simply discover your peers and open connections to them

Once you have a connection to the discovery network you can open a fresh named connection to a relay network. Each relay network has a unique name and only contains the peers attached to that unique name.

When a peer enters the network you get a direct stream connection to him. Now just talk to him!

If your UI component is a stream then you can pipe it directly to another peer. Once you get data from that peer simply render it. If you have data to send to the peer simply emit it.

Start building distributed apps on the cloud today!

Contributors

  • Raynos

MIT Licenced