fix: use the jsonrpc framework reconnect interval
This commit is contained in:
committed by
Michael Vines
parent
f3d9ab75e6
commit
3382548a79
@ -1043,8 +1043,10 @@ export class Connection {
|
|||||||
// 1000 means _rpcWebSocket.close() was called explicitly
|
// 1000 means _rpcWebSocket.close() was called explicitly
|
||||||
if (code !== 1000) {
|
if (code !== 1000) {
|
||||||
console.log('ws close:', code, message);
|
console.log('ws close:', code, message);
|
||||||
|
} else {
|
||||||
|
// Only after an explicit close do we need to explicitly connect again
|
||||||
|
this._rpcWebSocketConnected = false;
|
||||||
}
|
}
|
||||||
this._rpcWebSocketConnected = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user