Websocket: reconnect more rapidly when closed

This commit is contained in:
Ben Willmore 2022-03-05 11:10:13 +00:00 committed by chme
parent f380872540
commit 9d9bcc51f8
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ export default {
}
const socket = new ReconnectingWebSocket(wsUrl, 'notify', {
reconnectInterval: 3000
reconnectInterval: 1000,
maxReconnectInterval: 2000
})
socket.onopen = function () {