@wix/realtime 1.0.58 → 1.0.59
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.
|
@@ -17,7 +17,8 @@ export type { PublishChannel } from '@wix/realtime-common/types';
|
|
|
17
17
|
* import { publisher } from '@wix/realtime';
|
|
18
18
|
* import { elevate } from '@wix/sdk/context';
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* const elevatedPublish = elevate(publisher.publish);
|
|
21
|
+
* await elevatedPublish({ name: 'my-channel' }, { text: 'hello' });
|
|
21
22
|
* ```
|
|
22
23
|
*
|
|
23
24
|
* @example Publish a message to the specified channel: Self-hosted
|
|
@@ -33,7 +34,7 @@ export type { PublishChannel } from '@wix/realtime-common/types';
|
|
|
33
34
|
* // Include the auth strategy and host as relevant
|
|
34
35
|
* });
|
|
35
36
|
*
|
|
36
|
-
* await client.publisher.publish({ name: 'my-channel' }, {
|
|
37
|
+
* await client.publisher.publish({ name: 'my-channel' }, { text: 'hello' });
|
|
37
38
|
* ```
|
|
38
39
|
*
|
|
39
40
|
* @param channel - Channel and resource to publish to.
|
|
@@ -19,7 +19,8 @@ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
|
19
19
|
* import { publisher } from '@wix/realtime';
|
|
20
20
|
* import { elevate } from '@wix/sdk/context';
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* const elevatedPublish = elevate(publisher.publish);
|
|
23
|
+
* await elevatedPublish({ name: 'my-channel' }, { text: 'hello' });
|
|
23
24
|
* ```
|
|
24
25
|
*
|
|
25
26
|
* @example Publish a message to the specified channel: Self-hosted
|
|
@@ -35,7 +36,7 @@ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
|
35
36
|
* // Include the auth strategy and host as relevant
|
|
36
37
|
* });
|
|
37
38
|
*
|
|
38
|
-
* await client.publisher.publish({ name: 'my-channel' }, {
|
|
39
|
+
* await client.publisher.publish({ name: 'my-channel' }, { text: 'hello' });
|
|
39
40
|
* ```
|
|
40
41
|
*
|
|
41
42
|
* @param channel - Channel and resource to publish to.
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"kind": "code",
|
|
128
|
-
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { elevate } from '@wix/sdk/context';\n\
|
|
128
|
+
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { elevate } from '@wix/sdk/context';\n\nconst elevatedPublish = elevate(publisher.publish);\nawait elevatedPublish({ name: 'my-channel' }, { text: 'hello' });\n```"
|
|
129
129
|
}
|
|
130
130
|
]
|
|
131
131
|
},
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"kind": "code",
|
|
141
|
-
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { createClient } from '@wix/sdk';\n\n// Import the auth strategy for the relevant access type\n// Import the relevant host module if needed\n\nconst client = createClient({\n modules: { publisher },\n // Include the auth strategy and host as relevant\n});\n\nawait client.publisher.publish({ name: 'my-channel' }, {
|
|
141
|
+
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { createClient } from '@wix/sdk';\n\n// Import the auth strategy for the relevant access type\n// Import the relevant host module if needed\n\nconst client = createClient({\n modules: { publisher },\n // Include the auth strategy and host as relevant\n});\n\nawait client.publisher.publish({ name: 'my-channel' }, { text: 'hello' });\n```"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
},
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
"kind": "code",
|
|
288
|
-
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { elevate } from '@wix/sdk/context';\n\
|
|
288
|
+
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { elevate } from '@wix/sdk/context';\n\nconst elevatedPublish = elevate(publisher.publish);\nawait elevatedPublish({ name: 'my-channel' }, { text: 'hello' });\n```"
|
|
289
289
|
}
|
|
290
290
|
]
|
|
291
291
|
},
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"kind": "code",
|
|
301
|
-
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { createClient } from '@wix/sdk';\n\n// Import the auth strategy for the relevant access type\n// Import the relevant host module if needed\n\nconst client = createClient({\n modules: { publisher },\n // Include the auth strategy and host as relevant\n});\n\nawait client.publisher.publish({ name: 'my-channel' }, {
|
|
301
|
+
"text": "```ts\nimport { publisher } from '@wix/realtime';\nimport { createClient } from '@wix/sdk';\n\n// Import the auth strategy for the relevant access type\n// Import the relevant host module if needed\n\nconst client = createClient({\n modules: { publisher },\n // Include the auth strategy and host as relevant\n});\n\nawait client.publisher.publish({ name: 'my-channel' }, { text: 'hello' });\n```"
|
|
302
302
|
}
|
|
303
303
|
]
|
|
304
304
|
},
|
|
@@ -17,7 +17,8 @@ export type { PublishChannel } from '@wix/realtime-common/types';
|
|
|
17
17
|
* import { publisher } from '@wix/realtime';
|
|
18
18
|
* import { elevate } from '@wix/sdk/context';
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* const elevatedPublish = elevate(publisher.publish);
|
|
21
|
+
* await elevatedPublish({ name: 'my-channel' }, { text: 'hello' });
|
|
21
22
|
* ```
|
|
22
23
|
*
|
|
23
24
|
* @example Publish a message to the specified channel: Self-hosted
|
|
@@ -33,7 +34,7 @@ export type { PublishChannel } from '@wix/realtime-common/types';
|
|
|
33
34
|
* // Include the auth strategy and host as relevant
|
|
34
35
|
* });
|
|
35
36
|
*
|
|
36
|
-
* await client.publisher.publish({ name: 'my-channel' }, {
|
|
37
|
+
* await client.publisher.publish({ name: 'my-channel' }, { text: 'hello' });
|
|
37
38
|
* ```
|
|
38
39
|
*
|
|
39
40
|
* @param channel - Channel and resource to publish to.
|
|
@@ -16,7 +16,8 @@ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
|
16
16
|
* import { publisher } from '@wix/realtime';
|
|
17
17
|
* import { elevate } from '@wix/sdk/context';
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* const elevatedPublish = elevate(publisher.publish);
|
|
20
|
+
* await elevatedPublish({ name: 'my-channel' }, { text: 'hello' });
|
|
20
21
|
* ```
|
|
21
22
|
*
|
|
22
23
|
* @example Publish a message to the specified channel: Self-hosted
|
|
@@ -32,7 +33,7 @@ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
|
32
33
|
* // Include the auth strategy and host as relevant
|
|
33
34
|
* });
|
|
34
35
|
*
|
|
35
|
-
* await client.publisher.publish({ name: 'my-channel' }, {
|
|
36
|
+
* await client.publisher.publish({ name: 'my-channel' }, { text: 'hello' });
|
|
36
37
|
* ```
|
|
37
38
|
*
|
|
38
39
|
* @param channel - Channel and resource to publish to.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/realtime",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"isRootPublicSdk": true
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "8dcd02a38ba013d9e9178e133fb5311b12a9d7505e159d7db8a5516b"
|
|
76
76
|
}
|