Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((resp) => {
const hostname = this.props.location.hostname
? this.props.location.hostname
: window.location.hostname;
const port = window.location.port;
const config = {
sessionURL: `ws://${hostname}:${port}/proxy?sessionId=${
resp.data.metadata.sessionId
}&path=ws`,
retry: true,
};
network.connect(config);
})
.catch((err) => {