Skip to content

Commit ccca7cf

Browse files
author
Carlos Requena López
committed
fixes webpack#1616, allows var retries to increase at each reconnect
1 parent 178e6cc commit ccca7cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client-src/default/socket.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ let sock = null;
88
const socket = function initSocket(url, handlers) {
99
sock = new SockJS(url);
1010

11-
sock.onopen = function onopen() {
12-
retries = 0;
13-
};
11+
sock.onopen = function onopen() {};
1412

1513
sock.onclose = function onclose() {
1614
if (retries === 0) { handlers.close(); }

0 commit comments

Comments
 (0)