@wix/realtime 1.0.48 → 1.0.52

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.
@@ -1,5 +1,6 @@
1
1
  import { publish as publicPublish } from './publisher.public.js';
2
2
  import type { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
+ export type { PublishChannel } from '@wix/realtime-common/types';
3
4
  /**
4
5
  * Publishes a message to a channel or resource.
5
6
  *
@@ -1,5 +1,7 @@
1
1
  import { subscribe as publicSubscribe, unsubscribe as publicUnsubscribe } from './subscriber.public.js';
2
2
  import type { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
+ export type { SubscribeChannel, Message, MessageHandler, Publisher, SubscriptionHandler, SubscriptionErrorHandler, SubscriptionOptions, UnsubscribeOptions, } from '@wix/realtime-common/types';
4
+ export { RealtimeError, RealtimeErrorCode } from '@wix/realtime-common/types';
3
5
  /**
4
6
  * Subscribes to a channel or resource.
5
7
  *
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unsubscribe = exports.subscribe = void 0;
3
+ exports.unsubscribe = exports.subscribe = exports.RealtimeErrorCode = exports.RealtimeError = void 0;
4
4
  const subscriber_public_js_1 = require("./subscriber.public.js");
5
5
  const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ var types_1 = require("@wix/realtime-common/types");
7
+ Object.defineProperty(exports, "RealtimeError", { enumerable: true, get: function () { return types_1.RealtimeError; } });
8
+ Object.defineProperty(exports, "RealtimeErrorCode", { enumerable: true, get: function () { return types_1.RealtimeErrorCode; } });
6
9
  /**
7
10
  * Subscribes to a channel or resource.
8
11
  *