Skip to content

Commit 4d78692

Browse files
committed
docs: Finish changes to graphQLController comments.
Co-Authored by: HyeJin Kim <[email protected]>
1 parent 06229b4 commit 4d78692

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/controllers/graphQLController.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ const graphQLController = {
114114
});
115115
},
116116

117+
// open communication from server to client using websocket
117118
openSubscription(reqResObj: ReqRes): void {
118119
console.log('openSubscription');
119120
appDispatch(reqResUpdated(reqResObj));
@@ -146,6 +147,7 @@ const graphQLController = {
146147
}
147148
headers.Cookie = cookiesStr;
148149

150+
// create websocket client
149151
const wsLink = new GraphQLWsLink(
150152
createClient({
151153
url: wsUri,
@@ -156,7 +158,7 @@ const graphQLController = {
156158
},
157159
})
158160
);
159-
161+
// create apollo client
160162
const apolloClient = new ApolloClient({
161163
link: wsLink,
162164
cache: new InMemoryCache(),

0 commit comments

Comments
 (0)