We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc12097 + c4b7d97 commit eb59e52Copy full SHA for eb59e52
2 files changed
index.js
@@ -1,5 +1,6 @@
1
var sockets = require('./lib/sockets');
2
3
+module.exports = sockets;
4
module.exports.createContext = function(url) {
5
return new sockets.Context(url);
6
}
lib/sockets.js
@@ -63,6 +63,8 @@ var SOCKETS = {
63
WORKER: WorkerSocket
64
};
65
66
+module.exports = SOCKETS;
67
+
68
Context.prototype.socket = function(type, options) {
69
var Ctr = SOCKETS[type];
70
if (Ctr) {
0 commit comments