quickconnect-matrix

1.0.1 • Public • Published

quickconnect-matrix

This is a helper utility for creating a matrix of webrtc connections using rtc-quickconnect. This is mainly used to help facilitate tests for quickconnect and associated functionality.

NPM

Build Status bitHound Score

Example Usage

var test = require('tape');
var matrix = require('quickconnect-matrix');
var connections;
 
test('create a connection matrix of 4 connections', function(t) {
  t.plan(1);
  connections = matrix({ count: 4, timeout: 20e3 }, function(err) {
    t.ifError(err);
  });
});
 
test('close connections', function(t) {
  t.plan(1);
  connections.splice(0).forEach(function(conn) {
    conn.close();
  });
 
  t.pass('connections closed');
});
 

License(s)

ISC

Copyright (c) 2015, Damon Oehlman damon.oehlman@gmail.com

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Package Sidebar

Install

npm i quickconnect-matrix

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • damonoehlman