@libp2p/webrtc-peer
v2.0.2
Published
Simple one-to-one WebRTC data channels
Downloads
5,067
Keywords
Readme
@libp2p/webrtc-peer
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
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
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.