$ npm install @libp2p/webrtc-peer
Simple one-to-one WebRTC data channels
$ npm i @libp2p/webrtc-peer
import { WebRTCInitiator } from '@libp2p/webrtc-peer'
const channel = new WebRTCInitiator(channelOptions)
channel.addEventListener('signal', (signal) => {
// do handshake
})
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