Skip to content

Commit

Permalink
webSocketImpl for broser support
Browse files Browse the repository at this point in the history
wsConnectionSettings.webSocketImpl  = [WS constructor]
  • Loading branch information
mrspartak committed May 30, 2020
1 parent 2e9a963 commit 80abae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hasura/wsgql.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class WsGql extends EventEmitter {
settings: {
reconnect: true,
lazy: true,
webSocketImpl: ws,
},
};
this.params = mergeDeep({}, defaultParameters, parameters);
Expand Down Expand Up @@ -50,7 +51,7 @@ class WsGql extends EventEmitter {
headers,
},
},
ws,
this.params.settings.webSocketImpl,
);

this.client.on('connecting', () => {
Expand Down

0 comments on commit 80abae4

Please sign in to comment.