Skip to content

Commit 2e5f0b3

Browse files
committed
Expose socket definition.
1 parent d48ec4e commit 2e5f0b3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var sockets = require('./lib/sockets');
22

3+
module.exports = sockets;
34
module.exports.createContext = function(url) {
45
return new sockets.Context(url);
5-
}
6+
}

lib/sockets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ var SOCKETS = {
6363
WORKER: WorkerSocket
6464
};
6565

66+
module.exports = SOCKETS;
67+
6668
Context.prototype.socket = function(type, options) {
6769
var Ctr = SOCKETS[type];
6870
if (Ctr) {

0 commit comments

Comments
 (0)