@libp2p/webrtc-star-protocol
shared types used by the libp2p webrtc transport and signalling server
Last updated 2 years ago by achingbrain .
Apache-2.0 OR MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @libp2p/webrtc-star-protocol 
SYNC missed versions from official npm registry.

@libp2p/webrtc-star-protocol

libp2p.io Discuss codecov CI

shared types used by the libp2p webrtc transport and signalling server

Table of contents

Install

$ npm i @libp2p/webrtc-star-protocol

Description

This module contains type definitions for the websocket events that are exchanged between peers during the handshake process.

Protocol

  1. Peers connect to the same signal server and send an ss-join event with their multiaddr as a string
  2. Peers send one or more ss-handshake events with candidate signals
  3. Peers receive one or more ws-handshake events with candidate signals
  4. Peers send one ss-handshake event with an offer signal
  5. Peers receive one ws-handshake events with an offer signal
  6. Peers are now connected
  7. Peers receive one or more ws-peer events with a multiaddr as a string for peer discovery
  8. Peers send an ss-leave event or disconnect when hanging up

See ./src/index.ts for definitions of ss-handshake and ws-handshake payloads.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Current Tags

  • 4.0.0                                ...           latest (2 years ago)

8 Versions

  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE