community: svelte-apollo: fix connectionParams (close #2769) (#2893)

This commit is contained in:
Praveen Durairaj 2019-09-17 13:14:10 +05:30 committed by Shahidh K Muhammed
parent 384b960f5d
commit 3b5886ed92

View File

@ -16,10 +16,10 @@ const wsLink = new WebSocketLink({
uri: "ws://localhost:8080/v1/graphql",
options: {
reconnect: true,
lazy: true
},
connectionParams: () => {
return { headers: getHeaders() };
lazy: true,
connectionParams: () => {
return { headers: getHeaders() };
},
},
});