Skip to content

Commit dc20601

Browse files
author
Stefania
committed
reconnection socket default
1 parent 79358b5 commit dc20601

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/socket-daemon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default class SocketDaemon extends Daemon {
167167
_wsConnect() {
168168
const wsProtocol = this.selectedProtocol === PROTOCOL.HTTPS ? 'wss' : 'ws';
169169
const address = this.agentInfo[wsProtocol];
170-
this.socket = io(address, { reconnection: false, forceNew: true });
170+
this.socket = io(address, { forceNew: true });
171171

172172
this.socket.on('connect', () => {
173173
// On connect download windows drivers which are indispensable for detection of boards
@@ -188,6 +188,7 @@ export default class SocketDaemon extends Daemon {
188188
handleAppMessage(message) {
189189
// Result of a list command
190190
if (message.Ports) {
191+
this.socket.emit('error', 'foo');
191192
this.handleListMessage(message);
192193
}
193194
// Serial monitor message

0 commit comments

Comments
 (0)