Socket
Socket
Sign inDemoInstall

webrtc.io

Package Overview
Dependencies
4
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

17

lib/webrtc.io.js

@@ -10,4 +10,4 @@ //SERVER

iolog = function(msg) {
console.log(msg)
}
console.log(msg);
};
console.log('Debug mode on!');

@@ -89,5 +89,6 @@ }

// remove from rooms and send remove_peer_connected to all sockets in room
var room;
for (var key in rtc.rooms) {
var room = rtc.rooms[key];
room = rtc.rooms[key];
var exist = room.indexOf(socket.id);

@@ -114,2 +115,5 @@

}
// we are leaved the room so lets notify about that
rtc.fire('room_leave', room, socket.id);
// call the disconnect callback

@@ -119,2 +123,3 @@ rtc.fire('disconnect', rtc);

});

@@ -245,4 +250,2 @@ // call the connect callback

// generate a 4 digit hex code randomly
function S4() {

@@ -253,4 +256,2 @@ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);

// make a REALLY COMPLICATED AND RANDOM id, kudos to dennis
function id() {

@@ -273,2 +274,2 @@ return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());

}
}
};
{
"name": "webrtc.io",
"version": "0.0.3",
"version": "0.0.4",
"description": "Abstraction for webRTC.",

@@ -5,0 +5,0 @@ "main": "index.js",

# webRTC.io
### [demo](http://bit.ly/webrtcio)
### [demo](http://webrtc.dennis.is/)
An abstraction layer for webRTC. Aim is to simplify the HTML5 web standard webRTC in a similar manner to socket.io w/ websockets. This project is still in an infintile stage, please send feature requests (or pulls!) to us as well as bug reports.

@@ -22,3 +22,3 @@

## Demo
This is a multi-person chat room demo written using our webRTC.io library. [Example Site](http://multiwebrtc.nodejitsu.com) & [Repository](http://www.github.com/webRTC/webrtc.io-demo/) (browser support section still applies!)
This is a multi-person chat room demo written using our webRTC.io library. [Example Site](http://webrtc.dennis.is/) & [Repository](http://www.github.com/webRTC/webrtc.io-demo/) (browser support section still applies!)

@@ -25,0 +25,0 @@ ## Installation

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc