Skip to content

Commit 4f63bbe

Browse files
committed
Subscribe test done
1 parent 3a5a117 commit 4f63bbe

File tree

2 files changed

+187
-58
lines changed

2 files changed

+187
-58
lines changed

src/env/browser/listen.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
dop.listen = 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 = dop.transports.listen.local;
11+
12+
if (typeof options.try_connects != 'number' || options.try_connects<0)
13+
options.try_connects = 99;
14+
15+
return new dop.core.listener(args);
16+
};

0 commit comments

Comments
 (0)