{"_id":"rooms.db","_rev":"37-3fb94ab3f407a1b0c36a744914aefb56","name":"rooms.db","description":"adding timeout to postgres database connector","dist-tags":{"latest":"0.1.1-81"},"versions":{"0.0.9":{"name":"rooms.db","version":"0.0.9","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Example\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre>\nvar os          = require('os'),\n  rooms       = require('roomsjs'),\n  roomdb      = require('rooms.db'),\n  port        = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express     = require('express'),\n  app         = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/');\n// connect database/s if needed\nroomdb.connectToDatabase('mysql', 'localhost', 'root', '');\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/examples/engineio\n                socketio\n                sockjs\n                angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.0.9","dist":{"shasum":"c051b03d50fb0655c6079e6d297a0a068430da6e","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.0.9.tgz","integrity":"sha512-WXwrbJIK6ZNjpClSpmF5xLrcxblcgaf0bluiNr5R17RHxiN0TIjpcjxPL3I+2EabpfiedyQ08tBtAkczC4n0Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgYekdGCBlffjFQoIw9HuXVUDlk9NX5TvB+fS30mX5YgIhAPgXroBMvplNcCBGWWIdN8BplIudtm/Kpy8kjTMDjWbr"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.0":{"name":"rooms.db","version":"0.1.0","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Example\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/');\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', 'root', '');\n// MongoDB\nroomdb.connectToDatabase('mongoose', 'localhost', 'test', '');\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs  \n  |  |  |- angular  \n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.0","dist":{"shasum":"aed44aaae7499b6473343bc62691be881e16342a","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.0.tgz","integrity":"sha512-XhjftrvoPMG/12mE5jCu78CpBdhrNFpYcPyEX1EeiccsWSNpihrQr6YtSRn/EegfMs0MCtYRwsTsMUSYMPbq2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLsETQYgTAVw5wmPPda/mfengZOf9lv6um+60WBqTpiQIgPGugpNVThGSpHUCZpxQL1MCTl5z9jVHBzsKyUTcf0U4="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.0-1":{"name":"rooms.db","version":"0.1.0-1","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Example\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/');\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\nroomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nRoomsdb services examples:\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.0-1","dist":{"shasum":"71d18a49997e259b1aea1457353599b6050a2abb","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.0-1.tgz","integrity":"sha512-ciZR0NwtZjCooOowoL6RI565Jz/0wc20jWYwbg1/lDdAwMC8TuPGy6MSTTGmmd8dfBzEVYv7X5Ubd5bM1OfL4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD79zP7dQlSJlc+L2S6BRHpj/9iHGFoRYdaxVuEBqRxkgIgBnlZ6JEgKpxz9Kh8rt7ocYaGV1y6b/FDkKfUWvdIdQU="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.0-2":{"name":"rooms.db","version":"0.1.0-2","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Quick getting started example\n\ncreate a project and install packages:\n\ncd ~/dev\nmkdir rooms && cd $_\nnpm install roomsjs rooms.db express\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/');\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\nroomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nRooms.db services examples:\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.0-2","dist":{"shasum":"fbea40c0a0ea91ef896b60e79b2ed356754d1f00","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.0-2.tgz","integrity":"sha512-Hd81wnJ0q/Y9hu9z2JQ5rGN2ywLVyGKWuO+52+VVE/6lQcDlIPMkOWHlE3dX6uio6pl3hHMyuyTBGjr0zZTUKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJUxW5U0VLt5R7kaZx8ILrigm47SkiKVsbXIydYM8MjAIhAPCo3kvn6pB97L2Eub2ELrFA74rrDDMDLUeshNxucnls"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.1":{"name":"rooms.db","version":"0.1.1","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Quick getting started example\n\ncreate a project and install packages:\n\ncd ~/dev\nmkdir rooms && cd $_\nnpm install roomsjs rooms.db express\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/', app); // pass the app to get rest services or null\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\nroomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nRooms.db services examples:\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.1","dist":{"shasum":"d5046f75a357c208e7c4a3826ebc9a14c58ef01b","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1.tgz","integrity":"sha512-1dugQ+EQ7r2+ihnLPzot4Ge4B4ZJDgIuRe7UyheB1AqBxzPslubCwC/ksfUKHj3OcooudMEp0V4GB+gHabXMpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFJNKaLqxcPr/JMNijN/x5RFMoiNfLwLPyY4YxaaM1cAIhAPmlKSeJce+aDCSIeCqBDFASxsXW5AXom3ddWHJ6TMRl"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.1-1":{"name":"rooms.db","version":"0.1.1-1","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Quick getting started example\n\ncreate a project and install packages:\n\ncd ~/dev\nmkdir rooms && cd $_\nnpm install roomsjs rooms.db express\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/', app); // pass the app to get rest services or null\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\nroomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nRooms.db services examples:\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.1-1","dist":{"shasum":"692ac67c6a3e6c30558550123f2699d75d0ffbb6","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-1.tgz","integrity":"sha512-OPsw98/Z+jOzyBO+wbTY1ZBhCLR3EX9dfzVIZCSCZYgIT7/PKly7zhg70hLadzI/4oRRbg8xeiqlVUI6UJ4U2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKuS0JvMlTa5AVxC+pl8PNkjGgLQuh3wdyt5uL6nnCeAIhAMQnOf5rePup+O31Rv293S+XLLd4rRBp1G1RFfRU8xbQ"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.1-2":{"name":"rooms.db","version":"0.1.1-2","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Quick getting started example\n\ncreate a project and install packages:\n\ncd ~/dev\nmkdir rooms && cd $_\nnpm install roomsjs rooms.db express\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/', app); // pass the app to get rest services or null\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\nroomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nRooms.db services examples:\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.1-2","dist":{"shasum":"274a9ae31251ea14fa803a045b34949c208685e2","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-2.tgz","integrity":"sha512-eu33HAu/lJeLBG3frMMumETOXlZksL3/PENfOmzH8gzUZ1JWrt44Q5FlV8zxloL3Yx6Vm845O0keDlowLp9n9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICIIaHZ9yHLHW1SCmE7oWbVVWXbj3fSiD3NpHYqQmKyCAiALvHCV6I6YCutYTPiEx5mdS9MvDIf1eIKkCkzJ9rX04g=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.1-3":{"name":"rooms.db","version":"0.1.1-3","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS/FMS Flash Webcam fallback\n    9. HTML5 Webcam (still in development)\n    10. Database connector (such as mysql, mongodb).\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    12. Angularjs implementation\n\n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Quick getting started example\n\ncreate a project and install packages:\n\ncd ~/dev\nmkdir rooms && cd $_\nnpm install roomsjs rooms.db express\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/', app); // pass the app to get rest services or null\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\nroomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nRooms.db services examples:\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here about init concept read here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.1.1-3","dist":{"shasum":"78401cab5902e1876cec4cac79239681455828ae","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-3.tgz","integrity":"sha512-S9fMPeulyRD7KquIXk2DrLRS68K4/tlc/wQNGvI4QFM7b/k1Dd0p6CbvxaIhBG6DZxuG3l5Q5GqXUwloOn1ktQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF155NS8Ggb/yqjXimwj4XEVR/e9Xk0juXdCwyfJpRZ4AiANpCNV6YEgA/mrmLX83+HO847+qKQy+ZRT1hF7IVcPlQ=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.0.1":{"name":"rooms.db","version":"0.0.1","description":"Real Time Communication and Collaboration database connector","main":"index.js","scripts":{"test":"connectToDatabase"},"repository":{"type":"git","url":"https://github.com/EladElrom/RoomsJS.git"},"dependencies":{"mysql":"2.0.0-alpha7","rooms":"0.0.22"},"keywords":["rooms.db","rooms","collaboration","db connector"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"Real Time Communication and Collaboration platform:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS Webcam\n    9. HTML5 Webcam\n    10. Database connector (mysql)\n\nYou can install using npm:\n\n\tnpm install roomsjs\n\nSee rooms.db connector companion module:\n\n    npm install rooms.db\n\n","_id":"rooms.db@0.0.1","dist":{"shasum":"9d694db347528b897e718ebef2caf1caccbd821d","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.0.01.tgz","integrity":"sha512-umrEmcDJIoXiiHWMyhNlLlEY11KHeJ3CW6h4JrUe4af8jlSCYu2D5Rzzkp+0vZ2zVBR8SSWyLLh5Q3qrEI9XxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbiSr7wwfrzggof114Mjdl4gNbV1a+K5OjGyIsaVOyzwIhAIX+Ir3KS3N66ojkOWfRExrAPlpx6orJZTiOf9Oqq/+Q"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.0.2":{"name":"rooms.db","version":"0.0.2","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","scripts":{"test":"connectToDatabase"},"repository":{"type":"git","url":"https://github.com/EladElrom/RoomsJS.git"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end \n\nA Node.JS module, provides an object oriented wrapper for socketio for creating rooms and streaming data between users, streaming data from a database and even 3rd party services.\n`roomsjs` based on Socket.IO, `roomsdb` and `roomsjs-fronend` combine together provides a powerful light-weight backend/front-end libraries built to stream live data, stream data from a database and even stream 3rd party APIs.\n\nIt has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS Webcam\n    9. HTML5 Webcam\n    10. Database connector (mysql)\n\n## Installation\n\n  Install with the Node.JS package manager [npm](http://npmjs.org/):\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end code from:\n\n[https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/enum/messagetype.js.js](https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/enum/messagetype.js)\n[https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/socketcontroller.js](https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/socketcontroller.js)\n[https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/autostartcontroller.js](https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/autostartcontroller.js)\n\nFront-end dependencies: `jquery.js`, `socket.io.js`\n\nDownload complete front-end example from here see `public` folder: \n[https://github.com/EladElrom/roomsjs-fronend](https://github.com/EladElrom/roomsjs-fronend)\n      \n## Example\n\nBack-end code to create the rooms services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\"><code>\nvar express     = require('express'),\n    app         = express(),\n    os          = require('os'),\n    http        = require('http'),\n    server      = http.createServer(app),\n    rooms       = require('roomsjs'),\n    dbconnector = require('rooms.db'),\n    db_methods  = require('./roomsdb_sample/dbconnector_methods.js'),\n    port        = (process.env.PORT || 8081);\n\napp.use(express.static(__dirname + '/public'));\n\nserver.listen(port, function() {\n    console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n\ndbconnector.connectToDatabase('mysql', 'localhost', 'root', '');\ndb_methods.setMethods(dbconnector);\n\nrooms = new rooms({ server : server, isdebug : true, socketio : null, dbconnector : dbconnector });\n</code></pre>\n\nFront-end example of getting the number of visitors:\n\n<pre lang=\"html\">\n<code>\n&#60;html&#62;\n&#60;head&#62;\n    &#60;title&#62;Room controller&#60;/title&#62;\n\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery-ui.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/socket.io/socket.io.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/enums/messagetype.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/socketcontroller.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/autostartcontroller.js\"&#62;&#60;/script&#62;\n&#60;body&#62;\n    &#60;button id=\"getResultsButton\"&#62;Get results&#60;/button&#62;\n    &#60;div id=\"visitors\" /&#62;\n&#60;/body&#62;\n&#60;/html&#62;\n</code>\n</pre>\n\nExample of streaming a pod consists of live camera feeds and text comment feed between different users on a page and dragging the pods;\n\n<pre lang=\"html\"><code>\n&#60;html&#62;\n&#60;head&#62;\n    &#60;title&#62;Room controller&#60;/title&#62;\n\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery-ui.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/socket.io/socket.io.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/enums/messagetype.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/socketcontroller.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/controller.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/model/vo/clientvo.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/swfobject.js\"&#62;&#60;/script&#62;\n&#60;body&#62;\n\n&#60;div class=\"well\" style=\"float: right; width: 300px; height: 300px; border: 1px solid #999;\"&#62;\n    Click to start/stop dragging\n    &#60;button id=\"grabAllPodsButton\"&#62;Grab all pods&#60;/button&#62;\n&#60;/div&#62;\n\n&#60;div id=\"visitors\" /&#62;\n\n&#60;/body&#62;\n&#60;/html&#62;\n</code></pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together. \n\n![backend diagram](https://raw.github.com/EladElrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.0.2","dist":{"shasum":"5e8a83c807377973829c24a16fef4c2dcad5d5aa","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.0.02.tgz","integrity":"sha512-2oUb3RT5hrFOCZd6Jf8goEGb19dEUU4iFrwNTiIBsv1n9iyGH96SXrj2If04o+eGRi23wRFIQbZbtpKpNMnS0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/9rC4KaCYv/Cqx9y9T6Ol/cMsZTgsMOaCLDGJXV2wtAiBpzbspVa5FG0LW1n+LBjBRgjJGVtvA28VCBuv7qjD8yw=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.0.3":{"name":"rooms.db","version":"0.0.3","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","scripts":{"test":"lib/"},"repository":{"type":"git","url":"https://github.com/EladElrom/RoomsJS.git"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end \n\nA Node.JS module, provides an object oriented wrapper for socketio for creating rooms and streaming data between users, streaming data from a database and even 3rd party services.\n`roomsjs` based on Socket.IO, `roomsdb` and `roomsjs-fronend` combine together provides a powerful light-weight backend/front-end libraries built to stream live data, stream data from a database and even stream 3rd party APIs.\n\nIt has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS Webcam\n    9. HTML5 Webcam\n    10. Database connector (mysql)\n\n## Installation\n\n  Install with the Node.JS package manager [npm](http://npmjs.org/):\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end min file:\n[https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/libs/socketcontroller.min.js](https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/socketcontroller.min.js)\n\nExample of front-end implementation of `socketcontroller`:\n[https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/autostartcontroller.js](https://raw.github.com/EladElrom/roomsjs-fronend/master/public/js/autostartcontroller.js)\n\nFront-end dependencies: `jquery.js`, `socket.io.js`\n\nDownload complete front-end example from here see `public` folder: \n[https://github.com/EladElrom/roomsjs-fronend](https://github.com/EladElrom/roomsjs-fronend)\n      \n## Example\n\nBack-end code to create the rooms services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\"><code>\nvar express     = require('express'),\n    app         = express(),\n    os          = require('os'),\n    http        = require('http'),\n    server      = http.createServer(app),\n    rooms       = require('roomsjs'),\n    roomdb = require('rooms.db'),\n    port        = (process.env.PORT || 8081);\n\napp.use(express.static(__dirname + '/public'));\n\nserver.listen(port, function () {\n    console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n\n// services\nroomdb.setServices('roomsdb_services_sample/');\n\n// connect database\nroomdb.connectToDatabase('mysql', 'localhost', 'root', '');\n\n// set rooms\nrooms = new rooms({\n    server : server,\n    isdebug : true,\n    socketio : null,\n    roomdb : roomdb /* or null if no db needed */\n});\n</code></pre>\n\nFront-end example of getting the number of visitors:\n\n<pre lang=\"html\">\n<code>\n&#60;html&#62;\n&#60;head&#62;\n    &#60;title&#62;Room controller&#60;/title&#62;\n\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery-ui.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/socket.io/socket.io.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/socketcontroller.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/autostartcontroller.js\"&#62;&#60;/script&#62;\n&#60;body&#62;\n    &#60;button id=\"getResultsButton\"&#62;Get results&#60;/button&#62;\n    &#60;div id=\"visitors\" /&#62;\n&#60;/body&#62;\n&#60;/html&#62;\n</code>\n</pre>\n\nExample of streaming a pod consists of live camera feeds and text comment feed between different users on a page and dragging the pods;\n\n<pre lang=\"html\"><code>\n&#60;html&#62;\n&#60;head&#62;\n    &#60;title&#62;Room controller&#60;/title&#62;\n\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery-ui.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/socket.io/socket.io.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/socketcontroller.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/controller.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/model/vo/clientvo.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/swfobject.js\"&#62;&#60;/script&#62;\n&#60;body&#62;\n\n&#60;div class=\"well\" style=\"float: right; width: 300px; height: 300px; border: 1px solid #999;\"&#62;\n    Click to start/stop dragging\n    &#60;button id=\"grabAllPodsButton\"&#62;Grab all pods&#60;/button&#62;\n&#60;/div&#62;\n\n&#60;div id=\"visitors\" /&#62;\n\n&#60;/body&#62;\n&#60;/html&#62;\n</code></pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together. \n\n![backend diagram](https://raw.github.com/EladElrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.0.3","dist":{"shasum":"608b5c3008902c891dc620a8c6e582ef3ffb9434","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.0.03.tgz","integrity":"sha512-dzo9SGjcmsyRSMrAORxKun5EDNEftvHxoTewyqrQwAn0D4TQiwcxUnCWMIRwrm7FSnXWtNBC2bFYabCGDlbFHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI0vC902h+60W16Q5wLZ69GU4ptXUGFcMKVCmLO6nV2AiEA+0bJW4Rzdj3/CmVSPelxKepdkmFWP+qqAEzVkRiUpKc="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.0.4":{"name":"rooms.db","version":"0.0.4","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","scripts":{"test":"lib/"},"repository":{"type":"git","url":"https://github.com/EladElrom/roomsdb"},"dependencies":{"mysql":"2.0.0-alpha7"},"keywords":["rooms.db","rooms","collaboration","db connector"],"author":{"name":"Elad Elrom"},"license":"BSD","readmeFilename":"README.md","readme":"# JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end built to support different transporters\n\nA Node.JS module, provides an object oriented wrapper for different transporters such as `socketio` for creating rooms and streaming data between users, streaming data from a database and even 3rd party services.\n`roomsjs`, `roomsdb` and `roomsjs-client` combine together a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to realtime communications, stream data from a database and even stream 3rd party APIs.\n\nIt has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states.\n    7. Subscribe to data VO.\n    8. AMS Flash Webcam fallback\n    9. HTML5 Webcam\n    10. Database connector (such as mysql)\n\n## Installation\n\n  Install with the Node.JS package manager [npm](http://npmjs.org/):\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end min file:\n[https://raw.github.com/EladElrom/roomsjs-client/master/public/js/libs/socketcontroller.min.js](https://raw.github.com/EladElrom/roomsjs-client/master/public/js/socketcontroller.min.js)\n\nExample of front-end implementation of `socketcontroller`:\n[https://raw.github.com/EladElrom/roomsjs-client/master/public/js/autostartcontroller.js](https://raw.github.com/EladElrom/roomsjs-client/master/public/js/autostartcontroller.js)\n\nFront-end dependencies: `jquery.js`, transporter such as `socket.io.js`\n\nDownload complete front-end example from here see `public` folder: \n[https://github.com/EladElrom/roomsjs-client](https://github.com/EladElrom/roomsjs-client)\n      \n## Example\n\nBack-end code to create the rooms services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\"><code>\nvar os          = require('os'),\n    rooms       = require('roomsjs'),\n    roomdb      = require('rooms.db'),\n    port        = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express     = require('express'),\n    app         = express().use(express.static(__dirname + '/public'));\n\n// create server\nvar server = require('http').createServer(app).listen(port, function () {\n        console.log('Listening on http://' + os.hostname() + ':' + port);\n    });\n\nvar transporter = {\n    type: 'socket.io',\n    require : require('socket.io'),\n    server : server\n};\n\n// services\nroomdb.setServices('services_sample/');\n// connect database/s\nroomdb.connectToDatabase('mysql', 'localhost', 'root', '');\n\n// set rooms\nrooms = new rooms({\n    isdebug : true,\n    transporter : transporter,\n    roomdb : roomdb /* or null if roomdb */\n});\n</code></pre>\n\nFront-end example of getting the number of visitors:\n\n<pre lang=\"html\">\n<code>\n&#60;html&#62;\n&#60;head&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery-ui.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/socket.io/socket.io.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/socketcontroller.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/autostartcontroller.js\"&#62;&#60;/script&#62;\n&#60;body&#62;\n    &#60;button id=\"getResultsButton\"&#62;Get results&#60;/button&#62;\n    &#60;div id=\"visitors\" /&#62;\n&#60;/body&#62;\n&#60;/html&#62;\n</code>\n</pre>\n\nExample of streaming a pod consists of live camera feeds and text comment feed between different users on a page and dragging the pods;\n\n<pre lang=\"html\"><code>\n&#60;html&#62;\n&#60;head&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"js/libs/jquery-ui.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/socket.io/socket.io.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/socketcontroller.min.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/controller.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/model/vo/clientvo.js\"&#62;&#60;/script&#62;\n    &#60;script type=\"text/javascript\" src=\"/js/libs/swfobject.js\"&#62;&#60;/script&#62;\n&#60;body&#62;\n\n&#60;div class=\"well\" style=\"float: right; width: 300px; height: 300px; border: 1px solid #999;\"&#62;\n    Click to start/stop dragging\n    &#60;button id=\"grabAllPodsButton\"&#62;Grab all pods&#60;/button&#62;\n&#60;/div&#62;\n\n&#60;div id=\"visitors\" /&#62;\n\n&#60;/body&#62;\n&#60;/html&#62;\n</code></pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together. \n\n![backend diagram](https://raw.github.com/EladElrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information here: [http://effectiveidea.com/_posts/roomsjs](http://effectiveidea.com/_posts/roomsjs)\n<br><br>\n\n## LICENSE\n\nBSD license.\n\n","_id":"rooms.db@0.0.4","dist":{"shasum":"16ceb3ddb291a579266bae563cbe5af6d3b501e8","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.0.04.tgz","integrity":"sha512-RHON2bOxY7ZhW7rpGue7EALkCkmh411XkytlKW793rkB+7jt9n73Vk4PjhICNw/Xx9qV/r5IVNh3/1d1/+ZLoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5OxcwLp7WRn4j76GrpduLGoRbxP4Q4mqjWZKIxAP8/AiB5jZwrjntu6xHz4HAWSnopryXBHmcAN0lJWmEe7OHIEg=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{}},"0.1.1-4":{"name":"rooms.db","version":"0.1.1-4","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{"mysql":"2.0.0-alpha7","mongoose":"^5.2.15","level":"^4.0.0"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"66eec27497bd4e276ffc30f06f84729e63d31709","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-4","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"dist":{"integrity":"sha512-zWUHJ4M3W1q3gPpllaJUYQGON3JmkVD278Yb5DColRlvBx/VDiGHwIOwDMxH1Oks/3lSzqxYF84BFIqbkhdWbA==","shasum":"b8f97279f0c9007966d31989fb32a6954a09aca4","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-4.tgz","fileCount":14,"unpackedSize":16907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtiFcCRA9TVsSAnZWagAAyIAP/2hF4tMgfSPQKvFdXdtd\nMKQ12oBR+vhmTciuowMxdjjRgxfOaGD7UiJBvsOaCtAs1B1J6aGC2Bp+ij+S\nso22QugltNyzhq9F3gBMxMUL/8+0gN4yZ9U2YvIjV022+5SqWtwiZKVy4fzC\n3xnHhk9ox5RTHv54+YsZQO5Ogh9uXaiUKBilzAAWdW7zN6PTjPt3M81fptdO\no7JrPB5Ghha2NWxuf9FGCPhL2VxRTNJupRq9IKP1eimqHsB+nzqeMeD0p+vY\n+LaZBiaDxq84/Iy+yTj3l+JQ+q41nTY0Vnq+h1+jp6YcV57DQxJGBF8GZfSK\nBSoAxyZ1E9wCepoCWUrmxn8ke5YqtDaLX2PrY955BVj6uShp1tQwBoXZul8D\nKGl890rEwdSz9YUbxeBCHVwfxVRfnvomze/Cj3Cg50t3naxoqT6ULRraR13P\nEpfKSLnfhKQUssZe38cue2FHkhliyUXs1KR24bzUjSGXyluEoGgeCc9ZHWA5\ngXEwsjjT7RRpHPHD3sGaLqS8H2JhSjfu/D4mYnw6epSJK9sJ5yH7Xz32RLHe\nzzMof035BE0EnErTh9h1HY/ZOiylFxVaxBjGX8Ax9/w5Pj6SGBu5kFgw9IRQ\nZBM+NO26ZJkOLB9ReLEACpvKyzarULEWqYAcsqdLi89ufc02bZ2hqRkDbJs4\n13hF\r\n=3DkC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLc1E+hMjU9IFsSLielt+TW7yKbHh58/hXEnzwsXQA3AiEAhuJKKf6Xoyz19sTeTDaydrR6JKu2SRcqxRlaye7Walw="}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-4_1538662747801_0.11276071035491197"},"_hasShrinkwrap":false},"0.1.1-5":{"name":"rooms.db","version":"0.1.1-5","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{"mysql":"2.0.0-alpha7","mongoose":"^5.2.15","level":"^4.0.0"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"689a7bfabb22c812c5c4b273675207edaf49ce65","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-5","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"dist":{"integrity":"sha512-33rml7KjnJRLxua3SREbfiMaAHSCjQOpmza8nMEPTcxkpJFf/788z2xS5o/Cv1hjnLToiFRu2aVnOqX/7S2epg==","shasum":"4b366a9e328ada204fed51d6e2aac15bcc6600c6","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-5.tgz","fileCount":14,"unpackedSize":16910,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtiRkCRA9TVsSAnZWagAALhsP/2pegSMXSObj9/66cELb\np3jo6GFj4k+Qw1y0kj5CiFJpfFhSka11U8vk8Sz+IMclQsZomsrp0JvtKFpq\n6XmU/DAepVcC6YzDkL4PzqMXKbNKRpoj7djIA3yEov8GvTzuuZodGJNzMeiE\nAglpdoq+G/RIl5dfgIbIKa/O8xyf9fe2dPQSM3lhok+o3lU2Z31n7r8g0Yft\nkEziA9QVaCoIG7+3vRf9/gZ2eJzqciHm+d0/BHIlr8kSp+dB3SDQs/fl7kvN\n7aQWt/R726mPBtpaJKimELfMa+rYXVuT4detotyBjl6VcV1wfjAeKKpTM4dZ\nw5ZNpK4KZxyNMWmgmWNKWYxGKCNq9TUSQEvrXb6Ybj/trbt7SuKcqqn2ksHS\nBoWtXjqaO0jUslo7d9ryjwRWeHHMZPaCPMcGQA3EELR1e5mlS4+i43JZpBId\nWlWbfaJcTfz7lbN9+iR9jKTaD8IZOKbMOL1e1zw/4sGlAwLC3odwZceYaia9\ngXu7kgMHbysYQ8JuFmGnPuOKt832qaJoqaVUyy9Ey1KnGG8hjY/pu6QzR8OT\nBNxa6WyGya+W6JGA0i5lsnouApbOqZekMCLlqM/WzKOraQ4Zq3aEC5tbUX1r\npWyLCNph1fo/EPzLAi+mzMwu9/9jiw4ash//IilXN/Mig5+vLs4D4+0gZaBf\nBtQI\r\n=btlE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE708aPSCzanDpOrDaQXASAwr5FFSR5STqricMHiO06/AiAky9MHhg6pbndxtpVlY1IDsQDIC0loBr7NVv5Zm0xhYA=="}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-5_1538663523529_0.38827253440509124"},"_hasShrinkwrap":false},"0.1.1-6":{"name":"rooms.db","version":"0.1.1-6","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{"mysql":"2.0.0-alpha7","mongoose":"^5.2.15","level":"^4.0.0"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"0311a599098f01bae72508177ae1fe39fc551c1e","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-6","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"dist":{"integrity":"sha512-JYAftMF3+GzGVdqn9I6Ria3Xl8VoI1+26cDIEP4l++w/ldrCaHfYT85klIR+9LC/NNuYtVlK8/mVln76e++XOA==","shasum":"54e38b0f5e9f773d06a1e3e70d41243fa9d52ebc","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-6.tgz","fileCount":14,"unpackedSize":19311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbt3nCCRA9TVsSAnZWagAAOvIP/3Ak7hX7YZsnbKTmB471\nttEM0w3/wTLBLSuqjZRXv10xYsDQlh5DevXI8rcVftDs2hnJaip6GebseWtq\nAQ1FCmEh6WtgNcjweY176OS1viryd0iPHb4gYjz6vL0zYI0RbJIZeoBTEwFX\nDfN0RCkEczbIV4kAEcrOEK3QcGxx3C0LNua0ZDC+sx3VvluNMrNYwQ77Z/nS\n7MwrP5QRo5skuzESv2AAE2ZNyP+iBmZxUlD9LVp6r0obKcB0QCrUpmg4Zekj\nzXmJkbawvwlM8Cl4nMf80aKIt9gb6+wbtexVoGmr41bCl1Ilwv0dG1tByYmY\n96pdwVfv8EvPk9oM2kPM1ErxZRQ7DVzeyewbRcwt0HlRYavcZlAs/GVWrujq\nlQf6XYfFQiSN5lFhEqo+sIkigYC68vH+oaRG+NzIFinMhlGx2qzLgqXMYtKT\nt5rkkHgn33ygObs3BSoyHFfnNR39JZoKvsroZ8YoCOGakm5dbR8f2OFjzL0T\n+nyF+pZAYayhWG0JYMWSRdHreiDsLqxNVewqEyqOSfwk1O1dR4q0pyH/HuAx\ndClggrY5z0JIDhdJeqdl8UCa1hxvKxiPO7apvZxbi82/DiP4sFWmPwfqyeiE\n92vWlhsUSEhgZSSdD+wnzMTAdnnETL3lY2pLyyuU298evq7bWRhezfI1hE+e\nb2lz\r\n=wPgO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLQcx/LjSGtUDo1Bea2NY8l23lyF7dtblULgEEoA9fvAiBsfdpsiN0OhOh4Nn++tFYS4Z+LIt8PPDBL1WbyVR3axw=="}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-6_1538750913868_0.2639144186974207"},"_hasShrinkwrap":false},"0.1.1-76":{"name":"rooms.db","version":"0.1.1-76","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{"mysql":"2.0.0-alpha7","mongoose":"^5.2.15","level":"^4.0.0"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"58aa3cfb1503c8b289daf64901b498968a83bd89","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-76","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-nZCYzEDdMh3qOYg5LyEnhlnicQQPf4M4l4vdyX2C2b+cJUK4lb0TJRZIdPql8fYReq2yyLptpE06cy4hKnX7EQ==","shasum":"91fd054049d6c33f1d4c88194f84e2d8a8ec7c95","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-76.tgz","fileCount":15,"unpackedSize":20249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczBFFCRA9TVsSAnZWagAAzgsQAKCpOVmoyxPlDpOS07t4\neJTHBkHxnHhT7k/Mv6HFof1lE+MdENIj5WNygoJvbOVWf6UcfpNnDxOFh87a\n1ATLhIO3hxMTk6GkPckONqQQcntxf8bHX5ZccaVIWghB2FatapabwZM7mPNP\nTrCWGLFuk5NAX9sYvvrooTu/SmeS4tptx8Adu6B/Uq305ekDxw7gFW2oxsDw\nK3P5MtIacLLqYKg1gYyUr77xeM6Qo6+xc5bch/JxHNI+OPIUxDVkWNoko0hZ\n2GFsHIIhFYcihru2XQHlSf51oUrBGaddNJ6I3zXhZlJRChd4whLg0lGX6O5+\nW8bfuwUlQkUy+K6BbZSeA37IC4N8SVwxPfYU+WrXoUsMRtzfP9I00hXwmq6B\n2baodO3lS0J57Jrf9IXePN/AfNNdDfJ5/ixdxF9NlImt8HETBiXCG4xpxGt1\nwYoSh5P4vOmQf7n0STB2fCD5XOfTkFE/tdZ7pVtPboDfpia5A1gVHXPAFnNC\nn0mLT4x1fMMPVQC4EfrqCZ030PzGAhaQbyV9Bnlk0G46kdmgSFgR7Lh4sszD\nGDqF6DsYYJmk8Y/pMxR+fbPDxopWooB0+hSGEnwJeM+vga+GAPZ0tjX6ujGz\naH+lnpaM9togtrAhTY2ONideiD8lJtvz1yARJmUIYGiY2RKImGGOCLpic0iQ\nsP0x\r\n=GuXc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP413yw4hIDcBdeLEo/XlNjohXWZbLHtYD19yGwtTZKgIgGzZ4kADApp9bJEvHCGObr0VSrg75lPHZeEoOkxM56yA="}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-76_1556877636853_0.13648426183717333"},"_hasShrinkwrap":false},"0.1.1-77":{"name":"rooms.db","version":"0.1.1-77","description":"JavaScript Node.JS module for creating rooms and streaming data between front-end and back-end","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{"mysql":"2.0.0-alpha7","mongoose":"^5.2.15","level":"^4.0.0"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"2e599a2c7ebd4052e4717a080b6361318ff77b2e","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-77","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-IqeDIV+oU+EVoKVrqs2jwWvKq1v1yk3ScdM6vNdZdMKF0Rq8nYcaZ/D+j2F+4lOdXWq/yqG8mSrnPZMLJbnuag==","shasum":"e43c609a399c62f273897ee2e7832b3870a6bc54","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-77.tgz","fileCount":15,"unpackedSize":20320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczChQCRA9TVsSAnZWagAA/oQP/30yCa/iimaalSZ20kqJ\nfFiMawNusbCxVPMueoEUEvT19Z0QcjK2+aF0DKy8vIxg2o/JAd5JZ89/340U\njMz03PAbUgYYb6kQJWJ5B57e6GPxy9HHiXXUJEPnIxyAuTvjt3JulvtMBMCQ\nUhsPSQLVS9svaG1P9VLe0SXe4YzySr+/+KlSHpx+JcNrKCKuUizNOg9hV5m4\ny4q9mT1eHgwVcAAWcSOgjXlnmmz63zzdXSJqaU2hDyOup5fCtji5MYGLW10B\nrrsUG9J7q8HCmbv189bK0QLUeKNyCHyZep2LcjPKT07SPYajNxpeL7yHZ4KJ\n48g89PfRO1O/ZW9huBTjhSwbKImBKts2vQit4dB6BBbmSQGbskMduvyylwmJ\n1bkas71wXHzO0GS0PU5iog7JRHFMVk3hiOshD+sz0Ro2mhUpH4E+OZhu05mU\nNRzv78w4itC2gmYsNb5xNkj+76xK9ZpsyfO+KXCujbwcn0yJ0Lc7Oy/2INz6\nBtYS/vmo9kXr9G1VXkhMMrRYZpfUjhpiW9CAuj38gfl1xEgJZngV56aCyETU\nw8MK5IJ/tPKFwzKZKE5vJPXy0TFcSGwxqc6W8UBFz2ozGVbvE48tmay9FqbD\n0cGVsasPR3wobV9REpLmU3rrIzMc1WOP8SlMgnq05HKa1EA/SmqolyrPimNH\n0mZl\r\n=8e2L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDICMhtI/NNz1hSB22D9BinpDCuuTrwaCCt4OKG1833VwIgTaCnfEJcKekfRtPUYp9jjqPvsRyG2CVK2Lo6KxA3M20="}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-77_1556883535653_0.03982369289881227"},"_hasShrinkwrap":false},"0.1.1-78":{"name":"rooms.db","version":"0.1.1-78","description":"update mongodb to include options when connecting","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{"mysql":"2.0.0-alpha7","mongoose":"^5.2.15","level":"^4.0.0"},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"4d6446ddd79101ec81759431b49dd15b97edf557","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-78","_nodeVersion":"12.1.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-40zcKzf4vo4xyIC1ioCzpCoEVznUN8MLJSKuCl/xAXMyFGqBnukG3J13cX5fM4Y1WpBOKqBq2zVAVItcAXmi4w==","shasum":"e461482722dab4b797978fd8a9b44c283ca8971c","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-78.tgz","fileCount":15,"unpackedSize":20285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF+QXCRA9TVsSAnZWagAAJ8UP/i5BERbCx/0L5bKpbXPF\nhKYjEe6NY676FmHmDORhFrxvM+KE0AJ0C5b/57/fW7/Fz3JQJRhcVlKHXgFx\nu3JYiBR8t7ty4/j2UYm4GVHuGO1JmZL5xSUcOd76TOEdqqhYc8ch+XoPPcT7\nJzhxPOdk/Lvgd0S1cV4IlWG/efhgHKvni9Ukzc8cNOSPmfxrwZBN+vZSqzof\nltHD6GPt9pTIV4+q/6iF51lNVzSZioaUQHaLrIUZ1rAfJ6wb+TPNU1Acv/Rh\nJt+fQjs+g1yBm/wS1J44EyDnNkevSLIf8nUEwzqVo0w6uDmi1kxFXPQ/rsA3\nJ1gCfYDLSNvhQMTtz0HWO1Q6DSYPv7qV3ztYILTznZbfGyQjVWzcg+ruECOM\nen05toQAB8isQ30qzu4tlrf9EdhVKaCcJDGPE1MeD3sxi/w05Pk6e1MIZcM0\nOAYhJAA5DHttKvPaK1ljHUJxgYu+m0mYDWHNh6VlXHwp6tv+t6561UN1AK4p\ntwAUzJghzqRFFqbjuDxER29bIkuYzHOJ25Zyp9J+J3JljtnkZenMbw69paGZ\nqHZmsdokVYU36+mtb2fa/DfAewJWSjtXMekUJkqmJuzCNRSBLr6GDq75mmYq\nHsZYGH/w9c/eA0Z369azazzOzTPKgzvUJrzZHrJAkfhm4SDp+JOltETe6N6Z\nN6OA\r\n=DxLt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7Xd7nu4+Jwjejkg5ICTrIyx+Dg+iWkEWgMsWKbmqckAiEAk8b9zIrmbYQqBjjMr9yYwU3g3M4QUIQPkG299GO1+x8="}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-78_1578624022855_0.4718871377672471"},"_hasShrinkwrap":false},"0.1.1-79":{"name":"rooms.db","version":"0.1.1-79","description":"update mongodb to include options when connecting","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"5a3b417e24e5f4cb80373fe28b8c1bb053807482","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-79","_nodeVersion":"12.1.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-V26RTwjF7GDK1aHNLlZq33x+KTWyWi99bzgoJDR9Y3KWHiBoTzuPdopk0R22G2vaZaKpv7YoNo4HqGIrPDNRIw==","shasum":"3eb01a2a942ac02fcdd56c6dfbb285b334167f07","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-79.tgz","fileCount":15,"unpackedSize":20207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIGt8CRA9TVsSAnZWagAAfhcP/jLa1fby8bJDNfMdnpvZ\neXQAqYRqBeICnzQCaO7gysZ4NU/AnVCPaU8/SJ512n6gePbbR0bYKxCKdRH0\nJmPkpSgxFX52cL1V5RIpB9anTXjc6O/1bguBCyrl0ZR2ZijEOz2JRQIY4oFQ\ninHOhlHxX1Z5ZJpP5G02c4wA9XhMq4Jr+5Xjt076mTRI179l4RH6xV2WktQE\nZo1XtZykXg8HLeqISkSduMg0y9QsVB8iC54x+3TchcJA/JqFZ2XvqF70k9rN\nsx9Xcpt2L+bMWGn07as0yoOmBlGs1sD9XuWoiWKTL714koSN7L41Fd1gQGyW\ncxSoFpQ8yJu70VhB60yRydngeJW3hdsfNSrxmAHACXnZ1y2uBQCh31WW6pIp\nnymNfALNbmUnArAopx71iZPNCYxDnm3Jt1GE6majJoUnaGt1X9MQ6ew71hAA\nhfc2+05pcf4PMWiSYvhSc4+3R3xg1HLrixTOz7SMUM7z0ZHexlZq0cRlwe8Z\nLFB01OoNftb3MXPgBrK73Yk6nn42ZTA6/6sttQhyRbKzuWazXSfAHw99IKnN\nFyaPrh+4Ce2gwPg3NT7w+X/ZecSjqe3vP5QuOGw8pmave5pcAFnksz6l6Lou\n5RiOEWiVaUGJo0CUukJESLhBv7Dxoa+gSKB/X4liQIMJLek+hS4qipH95MkO\nQjKL\r\n=jZeJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCbsNZTh8uobOy6x+aS/Jdta3XHkexHOAheeNCwvt4SgIhAL2YQ89w5PuYUMgrqsvRhnoIuBfhw0Md63saGqbhL0Tb"}]},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-79_1579182972546_0.5335199612380463"},"_hasShrinkwrap":false},"0.1.1-80":{"name":"rooms.db","version":"0.1.1-80","description":"adding postgres database connector","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","postgres","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"80eb8282b44e4051c96d934f8bef70fa3d24b500","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-80","_nodeVersion":"8.10.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HcCPezk/aqh7LvJ8oZd6wXbhgg8kCKImoJVKqISu4f/XNsNyghnP9e/5Irc7M3FwOUt9pJiMxWSBASuloYXkDw==","shasum":"5fefb1400c76fd8f703b89aeca4cce9e23c4ea79","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-80.tgz","fileCount":17,"unpackedSize":22314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2h2nCRA9TVsSAnZWagAAqSEP/j607sscUZU6s5V+GntS\nUGvSvF8QE0gLhU+j2zAUP8EXYQ64UitNKQ/TWP3GXt7xtHleQlORWh/x49b4\nfacDEwbi1YmIcno0ya4Bjm5uFUyj3KLv2DUkil7eo/pPnfeT7Cw0/Ef/+Sg/\nqD4fGRPiPhFJqKo4rs5cOBseeKwcAgLxkuOXecPqfUA37NfU8NB4YHatK5z9\nq7pzhR0iim77uVPMj1kOxI9yfqPxAg00DQ5By+dUibCa6D1lN4e+hgfo1U7M\nfF6R/2RvjOy8/EyWPhRy5r5XlZQAvYePiWne2SYTnn2HHj+XG3jccDB8BuRT\nN8HJYKrlOSd8UoA/+yoBnripOA7LV4vimmsPdxCTI2Rs7Qgxew39+xqJsFUf\nOEdKkbq5Jr1j7u5NLqK80bMShhMHFUlbPm11iywOBuQnIZoSutTgHq/MIev8\nXmtSQ4dPBLHUbhcHDpOMkL8gJURWNpH6NVVUPiZ1yMV4wH6PH7XD+ymiRihb\nyG/jdJFTApN/fG5mha9VdcgX2boLYkc3tFDT+2bUJrlyUjGdLCo7BTEYAb7y\nqaTPg7yBgNfbl8Jh+iPLL2kvuYw1DJwD0WMvbnBx3hCa0YO8ullN3HM+89W6\n6Ik8OEDoSADC5nbrsjazBzDNwHa59SByLPkrybeNwJCeeT9uALEuj5RG8wjk\n/jDe\r\n=St5K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQbbw7OG7CFtYgSlg+CGGEDWUXlF5W+HNsoc/73gIDkwIgQexg8FQRj46tF0OFsYZypsqeF764XN1+1shJFYi0nII="}]},"_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"directories":{},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-80_1608129959272_0.43473786034690876"},"_hasShrinkwrap":false},"0.1.1-81":{"name":"rooms.db","version":"0.1.1-81","description":"adding timeout to postgres database connector","main":"index.js","repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"dependencies":{},"keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","postgres","leveldb","websocket database"],"author":{"name":"Elad Elrom"},"license":"BSD","gitHead":"55fae4d06fd2743f0de51d462f7ddacdc645dde2","bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"homepage":"https://github.com/EladElrom/roomsdb#readme","_id":"rooms.db@0.1.1-81","_nodeVersion":"8.10.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zHGA6+SOPtZGViGOLuRv0LoNuy8M8PdN1A692l26JKxD84MJwE498C2Kx+ckItklBq/oyuPpHfrkj5+xK8fAfw==","shasum":"0fc9b45af7f3021a7138fa605f53e2fbbc7a8b83","tarball":"https://registry.npmjs.org/rooms.db/-/rooms.db-0.1.1-81.tgz","fileCount":17,"unpackedSize":22393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8LBNCRA9TVsSAnZWagAAqNEQAJz/DAYu6vOtmHKkd741\n0+h/VDn4u2wopoo1PM3Ua0pWlQob/ME8yuu00NVL3s/bGFipuuum3RRsDtzz\nS08RLSldY2OoAKzq8cJNK+r/XDVtaGO9Mt9pBLhrjp0N52E/zn08Zz2cvFzQ\n4bbmUPJB5Wao985gHwmw32uLfkwYE4SSN9YgNdWBN7joU+2WvtDwF4Y4nWi+\nF/+hAWyDaqDSZ5RFzvfPi9SjDtgNY/hEZm0xxEUX5oMUuHIoHMtHIHljBESw\nlc4sQjFtlANbdxletGvG8YbjveIs9BNprp0wOg85pt8YWXTgTQCKd8K5MAkp\n00uawcLLCobDy5MzqYuIzq+zLN2yZXD+k7Jxn+smhNGV8bcgO/A5+LH1I7QR\nCRIoECmGMFWkKS5GErFFJbj4eyD0oEXJL0ITzATRZ11C/fZGd7RoQwFc7kTB\noCM5hb4rl3ttrtdCYF4qeLt10hxZIXZB+s+S0M1a7ZY9yKxMgio0GAmSd367\n5cifIc75vY5+OrITHB19ZiXiXxVD1n3dqLC9wL4JWly9568bbk/6qPb/VNEJ\nwQ/il/k3yFDIzAeqXZ2e9+mgMinQEnRtHAAvS7A5q2BwA5ZCbfLwlYCShQpf\nGZGqPDB1fhCV2oEH3l2vLwyZOwWmqa1yMmBts+y6rynkYThTHAO7tjJFDdV1\nP0S1\r\n=/bot\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeFmn9KRW0t4817enRQyZX2ZhiWjVLsLA6PTUfLbIlTAIgaYQCFsv9cJNsdMBUzTLKEEHeuMBUrUe80sQl0/q/Nps="}]},"_npmUser":{"name":"eladelrom","email":"elad.ny@gmail.com"},"directories":{},"maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rooms.db_0.1.1-81_1609609293477_0.9775874360744978"},"_hasShrinkwrap":false}},"readme":"# roomsjs - streaming live data built to support different transporters\n\n[![Build Status](https://secure.travis-ci.org/eladelrom/roomsjs-client.png)](http://travis-ci.org/eladelrom/roomsjs-client)\n[![NPM version](https://badge.fury.io/js/roomsjs.png)](http://badge.fury.io/js/roomsjs)\n\n![roomsjs logo](https://raw.github.com/eladelrom/roomsjs-client/master/roomsjs-logo.png)\n\nA Javascript Node.JS module, provides a way to send and receive messages and switch different transporters for creating rooms and streaming data between users, streaming data from a database and even stream from a 3rd party CDN.\n`roomsjs`, `roomsdb` and `roomsjs-client` together combine a powerful light-weight backend/front-end libraries built to stream live data and solve same problems related to real-time communications.\n\nThis library is split into three projects:\n1) roomsjs - [https://github.com/eladelrom/roomsjs](https://github.com/eladelrom/roomsjs)\n2) rooms.db - [https://github.com/eladelrom/roomsdb](https://github.com/eladelrom/roomsdb)\n3) roomsjs-client -  [https://github.com/eladelrom/roomsjs-client](https://github.com/eladelrom/roomsjs-client)\n\nNode.js technology relatively young and memory leaks were found in `socket.io` and issues around `engine.io`'s `Websocket` transporter on certain `nodejs` version.\n\nThe API was built to allow you to just 'switch' and use any transporter and create your own implementation. Module also have additional feature to help managing rooms easily.\n\nThe idea is to give a simple API and allowing using different transporters and modify the client implementation instead of having to do an 'open heart surgery' when you are already committed to one transporter API or another.\nIt's recommended to use `engine.io` since it's the high level API of `socket.io`, however there are cases where you want to have the `socket.io` bloated code for certain functionality.  `rooms.js` is a lower level API, just like `socket.io`, however it's lighter weight and doesn't have the sugar and all the bell and whistle of `socket.io`, so it's here for you to use.\n\n`roomsjs` has features such as:\n\n    1. Connect to a room\n    2. Register a user\n    2. Request number of users\n    3. Private message\n    4. Video\n    5. Create multiple rooms\n    6. Store states\n    7. Subscribe to data VO\n    8. AMS/FMS Flash Webcam fallback\n    9. Ability to register internal robot to send messages\n    11. Switch different transporters: currently supporting `socket.io`, `engine.io` and `SockJS`.\n    10. Database connector (such as mysql, mongodb).\n    12. Angularjs implementation\n    13. Create Express HTTP service connecting to databases with websocket using same code\n    \n## Installation\n\n  Install with the Node.JS package manager npm:\n\n      $ npm install roomsjs\n      $ npm install rooms.db\n\nDownload the front-end roomjs min file:\n[https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js](https://raw.github.com/eladelrom/roomsjs-client/master/client/dist/libs/rooms.min.js)\n\nOr install with bower:\n\n> bower install roomsjs-client\n\n## Quick getting started example\n\ncreate a project and install packages:\n\ncd ~/dev\nmkdir rooms && cd $_\nnpm install roomsjs rooms.db express\n\nServer code to create the rooms, services and connect to database and/or 3rd party APIs for streaming;\n\n<pre lang=\"javascript\">\n'use strict';\n\nvar os = require('os'),\n  rooms = require('roomsjs'),\n  roomdb = require('rooms.db'),\n  port = (process.env.PORT || 8081);\n\n// create express server if needed\nvar express = require('express'),\n  app = express().use(express.static(__dirname + '/client'));\n\n// engine.io, socket.io\nvar server = require('http').createServer(app).listen(port, function () {\n  console.log('Listening on http://' + os.hostname() + ':' + port);\n});\n// OR for sockjs\n// var server = require('http').createServer(app).listen(port, '0.0.0.0');\n\n// services\nroomdb.setServices('services_sample/', app); // pass the app to get rest services or null\n\n// connect to different database/s if needed\n// Mysql:\n// roomdb.connectToDatabase('mysql', 'localhost', {user: 'root', password: ''});\n// MongoDB\n// roomdb.connectToDatabase('mongodb', 'mongodb://localhost/test', {});\n// LevelDB\n// roomdb.connectToDatabase('leveldb', './mydb', {});\n// postgres\n// roomdb.connectToDatabase('postgresdb', 'URL', {user: 'my_user', password: 'my_password', port: 5432, database: 'my_database', timeout: 6000});\n\n\nlet transporterCallback = (type, data) => {\n    console.log('transporterCallback :: type: ' + type + '' + ', data: ' +JSON.stringify( data));\n    if (data.hasOwnProperty('register')) {\n        console.log('transporterCallback :: register userId: ' + data.register);\n    } else if (data.hasOwnProperty('disconnect')) {\n        console.log('transporterCallback :: disconnect userId: ' + data.disconnect);\n    }\n};\n\n// set rooms\nrooms = new rooms({\n  isdebug : true,\n  transporter : {\n    type: 'engine.io', /* options: engine.io|socket.io|sockjs */\n    server : server,\n    transporterCallback: transporterCallback\n  },\n  roomdb : roomdb /* or null if db not needed */\n});\n</pre>\n\nHere is an example of an internal Robot signing in as a user:\n<pre>\n// Internal Robot connects to room and send data to all collaborate users\nlet messagetype = require('./node_modules/roomsjs/lib/enums/messagetype.js');\nlet robotMsgCallback = (type, data) => {\n    console.log('robotMsgCallback :: type: ' + type + '' + ', data: ' + JSON.stringify(data));\n};\n\nsetTimeout(function(){\n    console.log('-------- joinRoom -------- ');\n    rooms[messagetype.JOIN_ROOM]({\n        'roomName': 'tester',\n        subscriptions : {\n            RoomInfoVO : true,\n            ClientVO : true\n        }\n    });\n\n    rooms[messagetype.REGISTER]({\n        'roomName': 'tester',\n        'userId' : 'robot',\n        isRobot: true,\n        robotMsgCallback: robotMsgCallback\n    });\n\n    setTimeout(function(){\n        console.log('-------- store change -------- ');\n        rooms[messagetype.STORE_STATE]({\"roomName\":\"tester\",\"name\":\"ClientVO\",\"vo\":{\"clientId\":\"robot\",\"mouseX\":0,\"mouseY\":0,\"comment\":\"\",\"isDrag\":true},\"userId\":\"robot\"});\n    }, 5000);\n\n\n    setTimeout(function(){\n        console.log('-------- disconnect -------- ');\n        rooms[messagetype.DISCONNECT]('robot');\n    }, 10000);\n\n}, 5000);\n</pre>\nThe full working example is here: roomsjs-client/client/examples/collaborate.\n\nRooms.db services examples:\n[https://github.com/eladelrom/roomsdb](https://github.com/eladelrom/roomsdb)\n\n<pre>\nservices_example/\n  |- examples/\n  |  |  |- cloudsearch.js [Cloud Search data source example]\n  |  |  |- getitems.js [mySQL data source example]\n  |  |  |- getnames.js [Static data example]\n  |  |  |- insertchatmessage.js [Mongodb example]\n  |  |  |- addBlock.js [levelDB example]\n  |  |  |- getId.js [postgres example]  \n</pre>\n\nFront-end example of getting the number of visitors and data from external sources:\n\nExamples of front-end implementation of `rooms` includes connecting to `engine.io`, `socket.io` and `sockjs` see here:\n[https://github.com/eladelrom/roomsjs-client](https://github.com/eladelrom/roomsjs-client)\n\n<pre>\nclient/\n  |- examples/\n  |  |  |- engineio\n  |  |  |- socketio\n  |  |  |- sockjs\n  |  |  |- angular\n  |  |  |- express\n  |  |  |- video\n  |  |  |- collaborate\n</pre>\n\n## Docs:\n\nBelow is a ten thousand foot diagram that shows how the different pieces of the platform are coming together using `socketio`.\n\n![backend diagram](https://raw.github.com/eladelrom/poet/ei-pages/effectiveidea/public/images/roomsjs-diagram1.png)\n<br><br>\n\nSee more information see here: [https://www.apress.com/us/book/9781484220436](https://www.apress.com/us/book/9781484220436)\n<br><br>\n\n## LICENSE\n\nBSD license.","maintainers":[{"name":"eladelrom","email":"elad.ny@gmail.com"}],"time":{"modified":"2022-06-26T14:09:26.343Z","created":"2013-05-28T22:00:48.732Z","0.0.9":"2013-07-14T13:25:33.411Z","0.1.0":"2013-07-21T13:50:08.847Z","0.1.0-1":"2013-07-21T17:07:29.596Z","0.1.0-2":"2013-08-23T21:44:36.950Z","0.1.1":"2013-09-21T00:00:41.008Z","0.1.1-1":"2013-09-24T22:02:00.767Z","0.1.1-2":"2013-10-07T16:58:50.813Z","0.1.1-3":"2013-12-17T16:25:15.447Z","0.0.1":"2013-05-28T22:00:52.944Z","0.0.2":"2013-06-17T17:30:35.099Z","0.0.3":"2013-06-19T19:55:19.699Z","0.0.4":"2013-06-20T14:31:39.634Z","0.1.1-4":"2018-10-04T14:19:08.001Z","0.1.1-5":"2018-10-04T14:32:03.662Z","0.1.1-6":"2018-10-05T14:48:34.005Z","0.1.1-76":"2019-05-03T10:00:36.972Z","0.1.1-77":"2019-05-03T11:38:55.777Z","0.1.1-78":"2020-01-10T02:40:22.984Z","0.1.1-79":"2020-01-16T13:56:12.682Z","0.1.1-80":"2020-12-16T14:45:59.447Z","0.1.1-81":"2021-01-02T17:41:33.589Z"},"author":{"name":"Elad Elrom"},"repository":{"type":"git","url":"git+https://github.com/EladElrom/roomsdb.git"},"homepage":"https://github.com/EladElrom/roomsdb#readme","keywords":["rooms.db","rooms","collaboration","db connector","mysql","mongodb","postgres","leveldb","websocket database"],"bugs":{"url":"https://github.com/EladElrom/roomsdb/issues"},"license":"BSD","readmeFilename":"README.md"}