We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d48ec4e commit 2e5f0b3Copy full SHA for 2e5f0b3
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