Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

joiny

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joiny

Simple Multicast with WebRTC

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

JoinyJS - Simple Multicast with WebRTC

JoinyJS simplifies WebRTC API and allows you to communicate with multiple peers transparently.

import { createWebRTC } from 'joiny';

// get a WebRTC object
const webRTC = createWebRTC({
    media: { video: true, audio: true }
    channels: [
        { chat: { reliable: false } },
        { file: { reliable: true } }
    ]
});

// get a local peer with a callback
webRTC.on('local', (peer) => { ... });

// get a remote peer with a callback
webRTC.on('remote', (peer) => { ... });

// get a chat channel bundle with a callback
webRTC.on('chat.channel', (channel) => { ... });

// get a file channel bundle with a callback
webRTC.on('file.channel', (channel) => { ... });

// start communication
webRTC.start();

Description

  • written in ES6.
  • tested on Chrome 44.0.2403.125.
  • uses WebSocket as a signaling channel.
  • operates same kind of channels as a bundled channel for transparent multicast.
  • detects entering and leaving of remote peers.

Example : Chat Room

$ cd examples/chat
$ npm install
$ npm start

Access http://localhost:3000 with some browsers.

Push the "Connect" Button on each browser.

Build

$ npm install
$ npm run build

License

The MIT License

FAQs

Package last updated on 02 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc