mute-server
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -24,11 +24,2 @@ /* | ||
// Connection to the mongoDB running instance | ||
mongoose.connect('mongodb://localhost/mute'); | ||
// Check if connection succeed | ||
var db = mongoose.connection; | ||
db.on('error', console.error.bind(console, 'connection error:')); | ||
db.once('open', function callback () { | ||
console.log('Connection to mongoDB instance succeed!'); | ||
}); | ||
var modelSchema = mongoose.Schema({ | ||
@@ -51,5 +42,6 @@ docID: String, | ||
var Coordinator = function () { | ||
var Coordinator = function (db) { | ||
this.models = {}; | ||
this.network = null; | ||
this.db = db; | ||
}; | ||
@@ -56,0 +48,0 @@ |
{ | ||
"name": "mute-server", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Server-side application creating a data-structure representing a text and initializing a network to allow clients to edit the text and broadcast theirs changes in real-time", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51605
390