mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 03:32:10 +08:00
Add leading-edge throttle to useMihomoWsSubscription, reduce SWR retry aggressiveness, and increase WebSocket reconnect delay to prevent event storms when switching profiles under poor network conditions.
This commit is contained in:
@@ -15,6 +15,7 @@ export const useMemoryData = () => {
|
||||
buildSubscriptKey: (date) => `getClashMemory-${date}`,
|
||||
fallbackData: FALLBACK_MEMORY_USAGE,
|
||||
connect: () => MihomoWebSocket.connect_memory(),
|
||||
throttleMs: 500,
|
||||
setupHandlers: ({ next, scheduleReconnect }) => ({
|
||||
handleMessage: (data) => {
|
||||
if (data.startsWith('Websocket error')) {
|
||||
|
||||
Reference in New Issue
Block a user