prostgles-client 4.0.294 → 4.0.295

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.
@@ -30,7 +30,7 @@ const useProstglesClient = ({ skip, socketOptions: socketPathOrOptions, endpoint
30
30
  const getIsMounted = (0, useIsMounted_1.useIsMounted)();
31
31
  const socketRef = useRef();
32
32
  (0, useAsyncEffectQueue_1.useAsyncEffectQueue)(async () => {
33
- var _a, _b;
33
+ var _a, _b, _c;
34
34
  if (skip)
35
35
  return undefined;
36
36
  (_a = socketRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
@@ -43,10 +43,10 @@ const useProstglesClient = ({ skip, socketOptions: socketPathOrOptions, endpoint
43
43
  reconnection: true,
44
44
  };
45
45
  if (endpoint) {
46
- opts.path = `/ws-api-db`;
46
+ (_b = opts.path) !== null && _b !== void 0 ? _b : (opts.path = `/ws-api`);
47
47
  }
48
48
  if (token) {
49
- (_b = opts.query) !== null && _b !== void 0 ? _b : (opts.query = {});
49
+ (_c = opts.query) !== null && _c !== void 0 ? _c : (opts.query = {});
50
50
  opts.query.sid_token = token;
51
51
  }
52
52
  const socket = endpoint ? io(endpoint, opts) : io(opts);