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 e739fc2 commit c900387Copy full SHA for c900387
src/socket-daemon.js
@@ -140,16 +140,15 @@ export default class SocketDaemon {
140
* @return {Promise}
141
*/
142
wsConnect() {
143
- if (this.socket) {
+ if (this.isConnected()) {
144
return;
145
}
146
147
const wsProtocol = this.selectedProtocol === PROTOCOL.HTTPS ? 'ws' : 'wss';
148
const address = this.agentInfo[wsProtocol];
149
- this.socket = io(address);
+ this.socket = io(address, { reconnection: false, forceNew: true });
150
151
this.socket.on('connect', () => {
152
-
153
initSocket(this.socket);
154
155
// On connect download windows drivers which are indispensable for detection of boards
0 commit comments