Skip to content

Commit 564031d

Browse files
committed
Implemented nodejs.connect
1 parent a381aed commit 564031d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/env/nodejs/connect.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
dop.connect = function(options) {
3+
4+
var args = Array.prototype.slice.call(arguments, 0);
5+
6+
if (dop.util.typeof(args[0]) != 'object')
7+
options = args[0] = {};
8+
9+
if (typeof options.transport != 'function')
10+
options.transport = require('dop-transports').connect.websocket;
11+
12+
return dop.core.connector(args);
13+
};

0 commit comments

Comments
 (0)