Skip to content

Commit cb20e46

Browse files
committed
native support
1 parent 2a7a359 commit cb20e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var SockJS;
66
* @param {String} url
77
* @constructor
88
*/
9-
function Client(url, retryAttempts = 3) {
9+
function Client(url, retryAttempts) {
1010
/** @type {String} */
1111
this._url = url;
1212
/** @type {SockJS} */
@@ -20,7 +20,7 @@ function Client(url, retryAttempts = 3) {
2020
/** @type {Number} */
2121
this._reopenTimeout = null;
2222
/** @type {Number} */
23-
this._retryAttempts = retryAttempts;
23+
this._retryAttempts = retryAttempts || 3;;
2424
/** @type {Number} */
2525
this._counter = 0;
2626
}

0 commit comments

Comments
 (0)