Reduce timeout for reconnect

This commit is contained in:
Jon Staab
2025-06-09 10:46:45 -07:00
parent d13ea745ff
commit 1f2e4cf3f0
+1 -1
View File
@@ -98,7 +98,7 @@ export const socketPolicyConnectOnSend = (socket: Socket) => {
const isClosed = [SocketStatus.Closed, SocketStatus.Error].includes(socket.status) const isClosed = [SocketStatus.Closed, SocketStatus.Error].includes(socket.status)
// When a new message is sent, make sure the socket is open (unless there was a recent error) // When a new message is sent, make sure the socket is open (unless there was a recent error)
if (isClosed && lastError < ago(30)) { if (isClosed && lastError < ago(10)) {
socket.open() socket.open()
} }
}), }),