Skip to content

Commit f43704c

Browse files
authored
Merge pull request #4043 from eedrxs/patch-3
Update part8e.md
2 parents 2f817ec + 305bf9a commit f43704c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/8/en/part8e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ When queries and mutations are used, GraphQL uses the HTTP protocol in the commu
538538
The above code registers a WebSocketServer object to listen to WebSocket connections, besides the usual HTTP connections that the server listens to. The second part of the definition registers a function that closes the WebSocket connection on server shutdown.
539539
If you're interested in more details about configurations, Apollo's [documentation](https://www.apollographql.com/docs/apollo-server/data/subscriptions) explains in relative detail what each line of code does.
540540

541-
WebSockets are a perfect match for communication in the case of GraphQL subscriptions since when WebSockets are used, also the server can initiate the communication.
541+
WebSockets are a perfect match for communication in the case of GraphQL subscriptions, since when WebSockets are used, the server can also initiate communication.
542542

543543
The subscription *personAdded* needs a resolver. The *addPerson* resolver also has to be modified so that it sends a notification to subscribers.
544544

0 commit comments

Comments
 (0)