2.0.2 • Published 2 years ago

@libp2p/webrtc-peer v2.0.2

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
2 years ago

@libp2p/webrtc-peer

libp2p.io Discuss codecov CI

Simple one-to-one WebRTC data channels

Table of contents

Install

$ npm i @libp2p/webrtc-peer

Usage

import { WebRTCInitiator } from '@libp2p/webrtc-peer'

const channel = new WebRTCInitiator(channelOptions)
channel.addEventListener('signal', (signal) => {
  // do handshake
})

License

Licensed under either of

Contribute

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.