@agilemotion/oui-react-js 1.6.8 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,13 @@ class SocketManager {
39
39
  });
40
40
  };
41
41
  init = async () => {
42
- let url = process.env.REACT_APP_SOCKET_SERVER_URL || 'https://svn.agilemotion.co.za';
42
+ let DEFAULT_SOCKET_SERVER_URL = 'https://sockets.e-procurementsystem.co.za';
43
+ if (!process.env.REACT_APP_SOCKET_SERVER_URL) {
44
+ console.log("SOCKET SERVER URL NOT SET. DEFAULTING TO - [https://sockets.e-procurementsystem.co.za]");
45
+ } else {
46
+ console.log("CONNECTING TO ENV SOCKET SERVER URL");
47
+ }
48
+ let url = process.env.REACT_APP_SOCKET_SERVER_URL || DEFAULT_SOCKET_SERVER_URL;
43
49
  console.log("======= SOCKET MANAGER CONNECTING TO ========= [" + url + "]");
44
50
  let socket = _socket.default.connect(url);
45
51
  this.socket = socket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemotion/oui-react-js",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "files": [
5
5
  "dist"
6
6
  ],