From de46fcd0e18d38c5eb4532044fb49fa46db61adf Mon Sep 17 00:00:00 2001 From: Stephen Barlow Date: Tue, 2 Mar 2021 13:54:21 -0800 Subject: [PATCH] Resolve #4743 --- docs/source/data/subscriptions.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/data/subscriptions.mdx b/docs/source/data/subscriptions.mdx index 6191d4e566b..738d8c0e950 100644 --- a/docs/source/data/subscriptions.mdx +++ b/docs/source/data/subscriptions.mdx @@ -336,7 +336,7 @@ Defining an `onConnect` function provides the following benefits: You provide these function definitions to the constructor of `ApolloServer`, like so: ```js -const server = new ApolloServer( +const server = new ApolloServer({ subscriptions: { onConnect: (connectionParams, webSocket, context) => { console.log('Connected!') @@ -346,7 +346,7 @@ const server = new ApolloServer( }, // ...other options... }, -); +}); ``` These functions are passed the following parameters: