cyclon.p2p-rtc-comms
A WebRTC communications module for the cyclon.p2p framework
Last updated 4 days ago by nicktee .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cyclon.p2p-rtc-comms 
SYNC missed versions from official npm registry.

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-client and cyclon.p2p-rtc-comms as runtime dependencies using npm

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

If you are using browserify and AngularJS in your project you can include the 'cyclon-rtc' and 'cyclon-rtc-comms' modules simply:

var angular = require('angular');  // or wherever angular comes from
var cyclon = require('cyclon.p2p');
var cyclonRtc = require('cyclon.p2p-rtc-client');
var cyclonRtcComms = require('cyclon.p2p-rtc-comms');

// Create the 'cyclon-rtc' module
cyclonRtc.createAngularModule(angular);
// Create the 'cyclon-rtc-comms' module
cyclonRtcComms.createAngularModule(angular);

// Then any modules that depend on 'cyclon-rtc-comms' can use the 'Comms' and 'Bootstrap' services exposed
var myModule = angular.module('myModule', ['cyclon-rtc-comms'])
myModule.service('myService', ['RTC', 'Comms', 'Bootstrap', function(rtcClient, rtcComms, rtcBootstrap) {
        var cyclonNode = cyclon.builder(rtcComms, rtcBootstrap);
        cyclonNode.start();
  }]);
  

Current Tags

  • 0.1.28                                ...           latest (4 days ago)

29 Versions

  • 0.1.28                                ...           4 days ago
  • 0.1.27                                ...           4 days ago
  • 0.1.26                                ...           5 days ago
  • 0.1.25                                ...           5 days ago
  • 0.1.24                                ...           5 days ago
  • 0.1.23                                ...           4 years ago
  • 0.1.22                                ...           4 years ago
  • 0.1.21                                ...           5 years ago
  • 0.1.20                                ...           5 years ago
  • 0.1.19                                ...           5 years ago
  • 0.1.18                                ...           5 years ago
  • 0.1.17                                ...           5 years ago
  • 0.1.16                                ...           5 years ago
  • 0.1.15                                ...           5 years ago
  • 0.1.14                                ...           5 years ago
  • 0.1.13                                ...           5 years ago
  • 0.1.12                                ...           5 years ago
  • 0.1.11                                ...           5 years ago
  • 0.1.10                                ...           5 years ago
  • 0.1.9                                ...           5 years ago
  • 0.1.8                                ...           5 years ago
  • 0.1.7                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 208
This Month 208
Last Day 0
Last Week 0
Last Month 25
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |