mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-22 07:58:52 +03:00
parent
ad31f02b51
commit
9b61964b71
@ -177,7 +177,6 @@ const createWsClient = (url, headers) => {
|
||||
websocketProtocol = 'wss';
|
||||
}
|
||||
const headersFinal = getHeadersAsJSON(headers);
|
||||
setTimeout(() => null, 500);
|
||||
const graphqlUrl = `${websocketProtocol}://${url.split('//')[1]}`;
|
||||
const client = new SubscriptionClient(graphqlUrl, {
|
||||
connectionParams: {
|
||||
@ -185,6 +184,7 @@ const createWsClient = (url, headers) => {
|
||||
...headersFinal,
|
||||
},
|
||||
},
|
||||
reconnect: true,
|
||||
});
|
||||
return client;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user