New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

github.com/prestonvanloon/libp2p-chat

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/prestonvanloon/libp2p-chat

v0.0.0-20190529173954-0ef098ebd1ac
Version published
Created

Chat

This is an experiment on connecting clients via relay nodes with a common DHT.

Goals

  • Clients connect via relay [DONE]
  • Clients discover each other in a common DHT via their relay address [DONE]

Example workflow:

  • Client A connects to a DHT of some kind.
  • Client A provides their connection address with (and without) relay path.
  • Client A requests peers from DHT, DHT returns empty list (or list of only cl Client A).
  • Client B connects to DHT.
  • Client B provides their connection addresses (w/ & w/o relay).
  • Client B requests peers from DHT, DHT returns list with Client A.
  • Client B attempts to connect to Client A, prioritizing non-relay addresses.
  • Client A is unreachable from Client B without the relay node.
  • Client B is connected to Client A via relay node.

FAQs

Package last updated on 29 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts