@libp2p/webrtc-peer
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @libp2p/webrtc-peer

Weekly Downloads

2,370

Version

2.0.2

License

Apache-2.0 OR MIT

Unpacked Size

62.6 kB

Total Files

33

Last publish

Collaborators

  • jacobheun
  • npm-service-account-libp2p
  • alanshaw
  • vascosantos
  • achingbrain
  • daviddias