Building an entire app around the peerjs protocol. Client side discovery (namespaces), with digitally signed and encrypted chats [ECDH-ECDSA + ECDHE for random rendezvous discovery]. Potentially turn trusted peers into browser based RPC/API endpoints.
https://github.com/smileytechness/peerjsSelfDiscovery/blob/m...