From 192be53fbd1deddce018e557ce9d1431dc7d7135 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Wed, 28 Apr 2021 03:24:37 +0930 Subject: [PATCH] fix: lower ka to prevent socket stalling --- app/graphql/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graphql/index.ts b/app/graphql/index.ts index d709d6f11..996b1e708 100644 --- a/app/graphql/index.ts +++ b/app/graphql/index.ts @@ -400,7 +400,7 @@ export const graphql = { types, resolvers, subscriptions: { - keepAlive: 30000, + keepAlive: 10000, onConnect: async (connectionParams: Record) => { const apiKey = connectionParams['x-api-key']; const user = await apiKeyToUser(apiKey);