diff --git a/dwds/lib/dwds.dart b/dwds/lib/dwds.dart index 7cd172dd8..b59cd89aa 100644 --- a/dwds/lib/dwds.dart +++ b/dwds/lib/dwds.dart @@ -128,7 +128,7 @@ class Dwds { // Allow for clients to reconnect in a short window. Making the // window too long may cause issues if the user closes a debug // session and initites a new one during the keepAlive window. - keepAlive: const Duration(seconds: 2))) + keepAlive: const Duration(seconds: 5))) : WebSocketSocketHandler(); extensionBackend = await ExtensionBackend.start(handler, hostname); diff --git a/dwds/lib/src/services/debug_service.dart b/dwds/lib/src/services/debug_service.dart index 1b3f48e78..133525fa8 100644 --- a/dwds/lib/src/services/debug_service.dart +++ b/dwds/lib/src/services/debug_service.dart @@ -232,7 +232,7 @@ class DebugService { // DDS will always connect to DWDS via web sockets. if (useSse && !spawnDds) { var sseHandler = SseHandler(Uri.parse('/$authToken/\$debugHandler'), - keepAlive: const Duration(seconds: 2)); + keepAlive: const Duration(seconds: 5)); handler = sseHandler.handler; unawaited(_handleSseConnections( sseHandler, chromeProxyService, serviceExtensionRegistry,