Comparing version 0.6.0 to 0.6.1
17
index.js
var Socket = require('./lib/socket/index') | ||
var SocketHub = require('./lib/socket' + '/hub') | ||
var SocketGateway = require('./lib/socket' + '/gateway') | ||
var SocketChannel = require('./lib/socket/channel') | ||
@@ -24,3 +22,13 @@ | ||
socketmq.channel = function(ns, name) { | ||
return new SocketChannel(null, ns, name) | ||
} | ||
/** | ||
* Server side API | ||
* @return {[type]} [description] | ||
*/ | ||
socketmq.hub = function() { | ||
var SocketHub = require('./lib/socket' + '/hub') | ||
return new SocketHub() | ||
@@ -30,7 +38,4 @@ } | ||
socketmq.gateway = function() { | ||
var SocketGateway = require('./lib/socket' + '/gateway') | ||
return new SocketGateway() | ||
} | ||
socketmq.channel = function(ns, name) { | ||
return new SocketChannel(null, ns, name) | ||
} |
{ | ||
"name": "socketmq", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Lightweight stream-oriented messaging library for node.", | ||
@@ -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
71801
2084