Skip to content

Commit

Permalink
Resolve #4743
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Barlow authored and Stephen Barlow committed Mar 2, 2021
1 parent b665bc8 commit de46fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/data/subscriptions.mdx
Expand Up @@ -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!')
Expand All @@ -346,7 +346,7 @@ const server = new ApolloServer(
},
// ...other options...
},
);
});
```

These functions are passed the following parameters:
Expand Down

0 comments on commit de46fcd

Please sign in to comment.