We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06229b4 commit 4d78692Copy full SHA for 4d78692
src/client/controllers/graphQLController.ts
@@ -114,6 +114,7 @@ const graphQLController = {
114
});
115
},
116
117
+ // open communication from server to client using websocket
118
openSubscription(reqResObj: ReqRes): void {
119
console.log('openSubscription');
120
appDispatch(reqResUpdated(reqResObj));
@@ -146,6 +147,7 @@ const graphQLController = {
146
147
}
148
headers.Cookie = cookiesStr;
149
150
+ // create websocket client
151
const wsLink = new GraphQLWsLink(
152
createClient({
153
url: wsUri,
@@ -156,7 +158,7 @@ const graphQLController = {
156
158
157
159
})
160
);
-
161
+ // create apollo client
162
const apolloClient = new ApolloClient({
163
link: wsLink,
164
cache: new InMemoryCache(),
0 commit comments