We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5a117 commit 4f63bbeCopy full SHA for 4f63bbe
src/env/browser/listen.js
@@ -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