@wix/realtime 1.0.19 → 1.0.21

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.
@@ -3,18 +3,8 @@ import type { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
3
  /**
4
4
  * Publishes a message to a realtime channel.
5
5
  *
6
- * Must be called from a backend function (server-to-server) as it requires
7
- * app-level permissions to publish messages via the Duplexer API.
8
- *
9
- * There are two ways to use this function depending on the Wix client type:
10
- *
11
- * **Manual client (self-hosted / explicit auth) — no elevation needed:**
12
- * The client's own credentials (instanceId, metaSiteId) are used directly.
13
- * This ensures messages are scoped to the correct site.
14
- *
15
- * **Contextual client (Wix-hosted) — elevation needed:**
16
- * The contextual httpClient may not have sufficient permissions on its own.
17
- * Wrap the call with `elevate()` to obtain the host's backend credentials.
6
+ * Requires a service identity (server-side only). The caller must have
7
+ * app-level permissions to publish messages.
18
8
  *
19
9
  * @example Manual client (self-hosted / explicit auth)
20
10
  * ```ts
@@ -6,18 +6,8 @@ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
6
  /**
7
7
  * Publishes a message to a realtime channel.
8
8
  *
9
- * Must be called from a backend function (server-to-server) as it requires
10
- * app-level permissions to publish messages via the Duplexer API.
11
- *
12
- * There are two ways to use this function depending on the Wix client type:
13
- *
14
- * **Manual client (self-hosted / explicit auth) — no elevation needed:**
15
- * The client's own credentials (instanceId, metaSiteId) are used directly.
16
- * This ensures messages are scoped to the correct site.
17
- *
18
- * **Contextual client (Wix-hosted) — elevation needed:**
19
- * The contextual httpClient may not have sufficient permissions on its own.
20
- * Wrap the call with `elevate()` to obtain the host's backend credentials.
9
+ * Requires a service identity (server-side only). The caller must have
10
+ * app-level permissions to publish messages.
21
11
  *
22
12
  * @example Manual client (self-hosted / explicit auth)
23
13
  * ```ts
@@ -30,15 +30,7 @@
30
30
  "summary": [
31
31
  {
32
32
  "kind": "text",
33
- "text": "Publishes a message to a realtime channel.\n\nMust be called from a backend function (server-to-server) as it requires\napp-level permissions to publish messages via the Duplexer API.\n\nThere are two ways to use this function depending on the Wix client type:\n\n**Manual client (self-hosted / explicit auth) — no elevation needed:**\nThe client's own credentials (instanceId, metaSiteId) are used directly.\nThis ensures messages are scoped to the correct site.\n\n**Contextual client (Wix-hosted) — elevation needed:**\nThe contextual httpClient may not have sufficient permissions on its own.\nWrap the call with "
34
- },
35
- {
36
- "kind": "code",
37
- "text": "`elevate()`"
38
- },
39
- {
40
- "kind": "text",
41
- "text": " to obtain the host's backend credentials."
33
+ "text": "Publishes a message to a realtime channel.\n\nRequires a service identity (server-side only). The caller must have\napp-level permissions to publish messages."
42
34
  }
43
35
  ],
44
36
  "blockTags": [
@@ -153,15 +145,7 @@
153
145
  "summary": [
154
146
  {
155
147
  "kind": "text",
156
- "text": "Publishes a message to a realtime channel.\n\nMust be called from a backend function (server-to-server) as it requires\napp-level permissions to publish messages via the Duplexer API.\n\nThere are two ways to use this function depending on the Wix client type:\n\n**Manual client (self-hosted / explicit auth) — no elevation needed:**\nThe client's own credentials (instanceId, metaSiteId) are used directly.\nThis ensures messages are scoped to the correct site.\n\n**Contextual client (Wix-hosted) — elevation needed:**\nThe contextual httpClient may not have sufficient permissions on its own.\nWrap the call with "
157
- },
158
- {
159
- "kind": "code",
160
- "text": "`elevate()`"
161
- },
162
- {
163
- "kind": "text",
164
- "text": " to obtain the host's backend credentials."
148
+ "text": "Publishes a message to a realtime channel.\n\nRequires a service identity (server-side only). The caller must have\napp-level permissions to publish messages."
165
149
  }
166
150
  ],
167
151
  "blockTags": [
@@ -3,18 +3,8 @@ import type { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
3
  /**
4
4
  * Publishes a message to a realtime channel.
5
5
  *
6
- * Must be called from a backend function (server-to-server) as it requires
7
- * app-level permissions to publish messages via the Duplexer API.
8
- *
9
- * There are two ways to use this function depending on the Wix client type:
10
- *
11
- * **Manual client (self-hosted / explicit auth) — no elevation needed:**
12
- * The client's own credentials (instanceId, metaSiteId) are used directly.
13
- * This ensures messages are scoped to the correct site.
14
- *
15
- * **Contextual client (Wix-hosted) — elevation needed:**
16
- * The contextual httpClient may not have sufficient permissions on its own.
17
- * Wrap the call with `elevate()` to obtain the host's backend credentials.
6
+ * Requires a service identity (server-side only). The caller must have
7
+ * app-level permissions to publish messages.
18
8
  *
19
9
  * @example Manual client (self-hosted / explicit auth)
20
10
  * ```ts
@@ -3,18 +3,8 @@ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
3
  /**
4
4
  * Publishes a message to a realtime channel.
5
5
  *
6
- * Must be called from a backend function (server-to-server) as it requires
7
- * app-level permissions to publish messages via the Duplexer API.
8
- *
9
- * There are two ways to use this function depending on the Wix client type:
10
- *
11
- * **Manual client (self-hosted / explicit auth) — no elevation needed:**
12
- * The client's own credentials (instanceId, metaSiteId) are used directly.
13
- * This ensures messages are scoped to the correct site.
14
- *
15
- * **Contextual client (Wix-hosted) — elevation needed:**
16
- * The contextual httpClient may not have sufficient permissions on its own.
17
- * Wrap the call with `elevate()` to obtain the host's backend credentials.
6
+ * Requires a service identity (server-side only). The caller must have
7
+ * app-level permissions to publish messages.
18
8
  *
19
9
  * @example Manual client (self-hosted / explicit auth)
20
10
  * ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/realtime",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -37,11 +37,11 @@
37
37
  "dependencies": {
38
38
  "@wix/auto_sdk_duplexer_publisher": "^1.0.10",
39
39
  "@wix/duplexer-js": "^2.0.6",
40
- "@wix/realtime-common": "1.0.1",
40
+ "@wix/realtime-common": "1.0.2",
41
41
  "@wix/sdk": "^1.21.4",
42
42
  "@wix/sdk-runtime": "^1.0.9",
43
43
  "@wix/sdk-types": "^1.17.5",
44
- "@wix/sdk_realtime_site": "1.0.17",
44
+ "@wix/sdk_realtime_site": "1.0.18",
45
45
  "uuid": "^11.1.0"
46
46
  },
47
47
  "devDependencies": {
@@ -65,5 +65,5 @@
65
65
  "isRootPublicSdk": true
66
66
  }
67
67
  },
68
- "falconPackageHash": "0f6203e22006cc834d66b9cc82bded26cd4ca19d4ca96f07dfad8664"
68
+ "falconPackageHash": "facecfa825a0ea1d9f981570bd0d3d99ca6fd995f5e5ec3f635260eb"
69
69
  }