mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 21:49:48 -05:00
Websocket: reconnect more rapidly when closed
This commit is contained in:
@@ -174,7 +174,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const socket = new ReconnectingWebSocket(wsUrl, 'notify', {
|
const socket = new ReconnectingWebSocket(wsUrl, 'notify', {
|
||||||
reconnectInterval: 3000
|
reconnectInterval: 1000,
|
||||||
|
maxReconnectInterval: 2000
|
||||||
})
|
})
|
||||||
|
|
||||||
socket.onopen = function () {
|
socket.onopen = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user