fix: lower ka to prevent socket stalling

This commit is contained in:
Alexis Tyler
2021-04-28 03:24:37 +09:30
parent 3719b06c50
commit 192be53fbd

View File

@@ -400,7 +400,7 @@ export const graphql = {
types,
resolvers,
subscriptions: {
keepAlive: 30000,
keepAlive: 10000,
onConnect: async (connectionParams: Record<string, string>) => {
const apiKey = connectionParams['x-api-key'];
const user = await apiKeyToUser(apiKey);