Détail du package

@libp2p/webrtc-peer

libp2p13.4kApache-2.0 OR MIT2.0.2

Simple one-to-one WebRTC data channels

readme

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

changelog

2.0.2 (2022-10-17)

Dependencies

  • dev: bump it-first from 1.0.7 to 2.0.0 (#23) (485eb3d)

2.0.1 (2022-10-13)

Trivial Changes

  • Update .github/workflows/stale.yml [skip ci] (1b36558)
  • update project config (#20) (96245d5)

Dependencies

  • bump uint8arrays from 3.1.1 to 4.0.2 (#22) (8495b1d)
  • dev: bump wherearewe from 1.0.2 to 2.0.1 (#17) (a0d0ed5)

2.0.0 (2022-06-15)

⚠ BREAKING CHANGES

  • uses new single-issue libp2p interface modules

Features

1.0.9 (2022-05-23)

Trivial Changes

1.0.8 (2022-05-23)

Trivial Changes

  • deps: bump @libp2p/interfaces from 1.3.32 to 2.0.1 (#10) (8ab82f0)

1.0.7 (2022-05-04)

Trivial Changes

1.0.6 (2022-05-04)

Bug Fixes

1.0.5 (2022-03-25)

Bug Fixes

  • adds tests from simple-peer module (#1) (d3a97c5)

1.0.4 (2022-03-19)

Bug Fixes

  • send the offer as the signal (cda3bfa)

1.0.3 (2022-03-19)

Bug Fixes

  • add protocol messages and trace logging (95847d1)

1.0.2 (2022-03-18)

Bug Fixes

Trivial Changes

1.0.1 (2022-03-18)

Bug Fixes

Trivial Changes

  • update readme [skip ci] (71ea7df)

1.0.0 (2022-03-18)

Trivial Changes