I'm using re-graph in a node environment for running automated functional tests against a GraphQL server. A dependency on js/window causes the re-graph initialization to fail, even if the :ws-url is set explicitly to nil. This PR introduces an additional check to avoid this problem in non-browser environments.
I'm using re-graph in a node environment for running automated functional tests against a GraphQL server. A dependency on
js/window
causes the re-graph initialization to fail, even if the:ws-url
is set explicitly to nil. This PR introduces an additional check to avoid this problem in non-browser environments.