Skip to content

Commit

Permalink
fix: link option not work when websocketsOnly=true (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyuan123 authored Jun 8, 2020
1 parent ee59014 commit 32e7db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function createApolloClient ({
const wsLink = new WebSocketLink(wsClient)

if (disableHttp) {
link = wsLink
link = link ? link.concat(wsLink) : wsLink
} else {
link = split(
// split based on operation type
Expand Down

0 comments on commit 32e7db2

Please sign in to comment.