Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 46cedca

Browse files
author
Francois-Xavier Gentilhomme
committed
[FIX] fixes issue on closed WS
1 parent f5c0b04 commit 46cedca

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

dist/myscript.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10618,6 +10618,8 @@ MyScript = {
1061810618
var state = _getWebSocketState(this._socket);
1061910619
if (state === 1) {
1062010620
_sendMessage(this._socket, request);
10621+
} else {
10622+
this.open();
1062110623
}
1062210624
};
1062310625

dist/myscript.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/myscript.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/networking/networkWSInterface.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
var state = _getWebSocketState(this._socket);
7070
if (state === 1) {
7171
_sendMessage(this._socket, request);
72+
} else {
73+
this.open();
7274
}
7375
};
7476

0 commit comments

Comments
 (0)