Websocket: reconnect more rapidly when closed
This commit is contained in:
parent
f380872540
commit
9d9bcc51f8
|
@ -174,7 +174,8 @@ export default {
|
|||
}
|
||||
|
||||
const socket = new ReconnectingWebSocket(wsUrl, 'notify', {
|
||||
reconnectInterval: 3000
|
||||
reconnectInterval: 1000,
|
||||
maxReconnectInterval: 2000
|
||||
})
|
||||
|
||||
socket.onopen = function () {
|
||||
|
|
Loading…
Reference in New Issue