How to use the pvw-visualizer/src/network.connect function in pvw-visualizer

To help you get started, we’ve selected a few pvw-visualizer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kitware / HPCCloud / src / tools / visualizer / index.js View on Github external
.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) => {