Skip to content

Commit

Permalink
support for secure websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnitzel committed Jan 15, 2019
1 parent d6c5d54 commit cff531e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ui/src/lib/ApiConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ApiConnection = ({ children }) =>
})

const wsLink = new WebSocketLink({
uri: publicRuntimeConfig.GRAPHQL_API.replace(/https?/, 'ws'),
uri: publicRuntimeConfig.GRAPHQL_API.replace(/https/, 'wss').replace(/http/, 'ws'),
options: {
reconnect: true,
connectionParams: {
Expand Down

0 comments on commit cff531e

Please sign in to comment.