Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

libp2p/js-libp2p-webrtc-peer

Repository files navigation

⚠️⚠️⚠️⚠️⚠️⚠️

Status:

Archived and not maintained

Alternatives:

WebRTC Browser-to-Server is being implemented in js-libp2p and tracked here libp2p/js-libp2p#1478 per the specification: libp2p/specs#412

WebRTC Browser-to-Browser is being tracked here: libp2p/js-libp2p#1462

Questions:

Please direct any questions about the specification to: https://github.com/libp2p/specs/issues

Please direct any questions about the js-libp2p WebRTC implementations to: libp2p/js-libp2p#1478 or libp2p/js-libp2p#1462

⚠️⚠️⚠️⚠️⚠️⚠️

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

About

Simple one-to-one WebRTC data channels

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 6