@wix/realtime 1.0.47 → 1.0.50

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
  *
@@ -7,7 +9,7 @@ import type { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
7
9
  *
8
10
  * Use the `options` parameter to register handlers that run whenever the subscription succeeds or generates an error. For some errors, the subscription is re-attempted automatically. The `onSubscribed()` handler runs on every successful re-subscription.
9
11
  *
10
- * Learn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/business-solutions/realtime/realtime/subscriber/introduction#business-solutions_realtime_realtime_subscriber_subscription-lifecycle).
12
+ * Learn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle).
11
13
  *
12
14
  * @example Subscribe to a channel
13
15
  * ```ts
@@ -50,7 +52,7 @@ import type { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
50
52
  * @requiredField channel
51
53
  * @param messageHandler - Handler that runs whenever a message is published to the channel or resource.
52
54
  * @requiredField messageHandler
53
- * @param options - [Lifecycle handlers](https://dev.wix.com/docs/sdk/business-solutions/realtime/realtime/subscriber/introduction#business-solutions_realtime_realtime_subscriber_subscription-lifecycle) for subscription events.
55
+ * @param options - [Lifecycle handlers](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle) for subscription events.
54
56
  */
55
57
  export declare const subscribe: MaybeContext<BuildRESTFunction<typeof publicSubscribe> & typeof publicSubscribe>;
56
58
  /**
@@ -1,5 +1,6 @@
1
1
  import { subscribe as publicSubscribe, unsubscribe as publicUnsubscribe, } from './subscriber.public.js';
2
2
  import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
+ export { RealtimeError, RealtimeErrorCode } from '@wix/realtime-common/types';
3
4
  /**
4
5
  * Subscribes to a channel or resource.
5
6
  *
@@ -7,7 +8,7 @@ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
7
8
  *
8
9
  * Use the `options` parameter to register handlers that run whenever the subscription succeeds or generates an error. For some errors, the subscription is re-attempted automatically. The `onSubscribed()` handler runs on every successful re-subscription.
9
10
  *
10
- * Learn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/business-solutions/realtime/realtime/subscriber/introduction#business-solutions_realtime_realtime_subscriber_subscription-lifecycle).
11
+ * Learn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle).
11
12
  *
12
13
  * @example Subscribe to a channel
13
14
  * ```ts
@@ -50,7 +51,7 @@ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
50
51
  * @requiredField channel
51
52
  * @param messageHandler - Handler that runs whenever a message is published to the channel or resource.
52
53
  * @requiredField messageHandler
53
- * @param options - [Lifecycle handlers](https://dev.wix.com/docs/sdk/business-solutions/realtime/realtime/subscriber/introduction#business-solutions_realtime_realtime_subscriber_subscription-lifecycle) for subscription events.
54
+ * @param options - [Lifecycle handlers](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle) for subscription events.
54
55
  */
55
56
  export const subscribe = /*#__PURE__*/ createRESTModule(publicSubscribe);
56
57
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/realtime",
3
- "version": "1.0.47",
3
+ "version": "1.0.50",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -44,11 +44,11 @@
44
44
  "@wix/auto_sdk_duplexer_publisher": "^1.0.10",
45
45
  "@wix/auto_sdk_duplexer_realtime-permissions-provider": "^1.0.0",
46
46
  "@wix/duplexer-js": "^2.0.6",
47
- "@wix/realtime-common": "1.0.17",
47
+ "@wix/realtime-common": "1.0.19",
48
48
  "@wix/sdk": "^1.21.4",
49
49
  "@wix/sdk-runtime": "^1.0.9",
50
50
  "@wix/sdk-types": "^1.17.5",
51
- "@wix/sdk_realtime_site": "1.0.36",
51
+ "@wix/sdk_realtime_site": "1.0.39",
52
52
  "uuid": "^11.1.0"
53
53
  },
54
54
  "devDependencies": {
@@ -72,5 +72,5 @@
72
72
  "isRootPublicSdk": true
73
73
  }
74
74
  },
75
- "falconPackageHash": "9d0366754fb3d0e319f47cd14f651bc19f84e19ddcff7ad474301df2"
75
+ "falconPackageHash": "7d087db037b66d3e5f0e53817c1d5c69812fee7c9c872b334e7b4162"
76
76
  }