cyclon.p2p-rtc-comms

1.1.1 • Public • Published

cyclon.p2p-rtc-comms

Build Status Dependencies

A WebRTC implementation of the cyclon.p2p Comms and Bootstrap interfaces.

This project implements the cyclon.p2p Comms and Bootstrap interfaces using cyclon.p2p-rtc-client. For more information about the Comms and Bootstrap interfaces, see cyclon.p2p.

How to use

First install cyclon.p2p-rtc-comms and cyclon.p2p as runtime dependencies using npm

npm install cyclon.p2p-rtc-comms --save
npm install cyclon.p2p --save

Create a Comms and Bootstrap instance using the builder provided, e.g.

const {commsAndBootstrapBuilder} = require('cyclon.p2p-rtc-comms');
const {builder} = require('cyclon.p2p');
 
const { comms, bootstrap } = commsAndBootstrapBuilder().build();
const cyclonNode = builder(comms, bootstrap).build();
cyclonNode.start();

/cyclon.p2p-rtc-comms/

    Package Sidebar

    Install

    npm i cyclon.p2p-rtc-comms

    Weekly Downloads

    26

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    111 kB

    Total Files

    41

    Last publish

    Collaborators

    • nicktee