fix: increased body size limit, added config option (#3011)

This commit is contained in:
Wyatt Johnson
2020-07-09 22:02:01 +00:00
committed by GitHub
parent d848fc193e
commit 00e074d49d
15 changed files with 152 additions and 69 deletions
@@ -259,11 +259,7 @@ export function createSubscriptionServer(
schema: GraphQLSchema,
options: Options
) {
// This typecast is needed because the custom `ms` format does not return the
// desired `number` type even though that's the only type it can output.
const keepAlive = (options.config.get(
"websocket_keep_alive_timeout"
) as unknown) as number;
const keepAlive = options.config.get("websocket_keep_alive_timeout");
return SubscriptionServer.create(
{