Skip to content

Instantly share code, notes, and snippets.

@mkg20001
Created May 31, 2018 15:20
Show Gist options
  • Save mkg20001/7328e2ee1851adc2467911940983e4ec to your computer and use it in GitHub Desktop.
Save mkg20001/7328e2ee1851adc2467911940983e4ec to your computer and use it in GitHub Desktop.

ws-star compared to rendezvous

ws-star:

Spec: https://github.com/libp2p/js-libp2p-websocket-star/blob/master/PROTOCOL.md

  • Servers are fixed after initialization
  • Connections are unstable due to memory leaks issues on the server side
  • All connections must go through the same relay
  • Supports only one main namespace

rendezouvs:

Spec: libp2p/specs#56

  • Servers can be added on-demand by dialing nodes that support /rendezvous/1.0.0
  • The protocol is simple and does not require an external non-libp2p server (such as an http server for socket.io)
  • Connections aren't forced to use the same p2p circuit relay or to even use p2p circuit at all
  • Supports multiple namespaces
    • Could be useful to find peers serving the current pad faster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment