Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maka-io authored May 23, 2019
1 parent 55ede82 commit 1f8310b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function initialize(config = { httpLinkOptions: {} }) {

if (!config.disableWebsockets) {
wsLink = new WebSocketLink({
uri: GRAPHQL_SUBSCRIPTION_ENDPOINT,
uri: config.httpLinkOptions.uri.replace(/http/,'ws'),
options: {
reconnect: true,
connectionParams: () => ({
Expand Down

0 comments on commit 1f8310b

Please sign in to comment.