Skip to content

Commit 32e7db2

Browse files
authored
fix: link option not work when websocketsOnly=true (#282)
1 parent ee59014 commit 32e7db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-client/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function createApolloClient ({
124124
const wsLink = new WebSocketLink(wsClient)
125125

126126
if (disableHttp) {
127-
link = wsLink
127+
link = link ? link.concat(wsLink) : wsLink
128128
} else {
129129
link = split(
130130
// split based on operation type

0 commit comments

Comments
 (0)