We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a7a359 commit cb20e46Copy full SHA for cb20e46
client/index.js
@@ -6,7 +6,7 @@ var SockJS;
6
* @param {String} url
7
* @constructor
8
*/
9
-function Client(url, retryAttempts = 3) {
+function Client(url, retryAttempts) {
10
/** @type {String} */
11
this._url = url;
12
/** @type {SockJS} */
@@ -20,7 +20,7 @@ function Client(url, retryAttempts = 3) {
20
/** @type {Number} */
21
this._reopenTimeout = null;
22
23
- this._retryAttempts = retryAttempts;
+ this._retryAttempts = retryAttempts || 3;;
24
25
this._counter = 0;
26
}
0 commit comments