Connect to peers
Discover and connect peers with HyperDHT and Hyperswarm—by public key, by topic, and across multiple rooms in one app.
Recipes for finding other peers and opening direct, end-to-end-encrypted connections.
Connect two peers by key with HyperDHT
Connect client and server peers by public key using HyperDHT hole punching.
Connect to many peers by topic with Hyperswarm
Discover peers on a topic and keep connections alive with Hyperswarm.
Host multiple rooms in one chat app
Extend the pear-chat scaffold from a single room to an account that owns and switches between many rooms.