Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Now.addSupportServer

  • Loading branch information...
commit cb811b090198e6c3d36730d26ff283d46fd2d854 1 parent ded54a1
Sridatta Thatipamala sridatta authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/now.js
6 lib/now.js
View
@@ -148,6 +148,7 @@ Now.prototype.initialize = function (server, options) {
this.Group = require('./group').initialize(this);
this.User = require('./user').initialize(this);
this.Handlers = require('./handlers').initialize(this);
+ this.Support = require('./support').initialize(this);
var self = this;
@@ -184,6 +185,11 @@ Now.prototype.initialize = function (server, options) {
return everyone;
};
+Now.prototype.addSupportServer = function(host, port){
+ var server = new this.Support(host, port);
+ return server;
+}
+
exports.Now = Now;
/**
Please sign in to comment.
Something went wrong with that request. Please try again.