$ npm install @libp2p/webrtc-star-protocol
shared types used by the libp2p webrtc transport and signalling server
$ npm i @libp2p/webrtc-star-protocol
This module contains type definitions for the websocket events that are exchanged between peers during the handshake process.
ss-join
event with their multiaddr as a stringss-handshake
events with candidate signalsws-handshake
events with candidate signalsss-handshake
event with an offer signalws-handshake
events with an offer signalws-peer
events with a multiaddr as a string for peer discoveryss-leave
event or disconnect when hanging upSee ./src/index.ts for definitions of ss-handshake
and ws-handshake
payloads.
Licensed under either of
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.
© 2010 - cnpmjs.org x YWFE | Home | YWFE