@wix/realtime 1.0.48 → 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.
- package/cjs/build/publisher/publisher.context.d.ts +1 -0
- package/cjs/build/subscriber/subscriber.context.d.ts +2 -0
- package/cjs/build/subscriber/subscriber.context.js +4 -1
- package/dist/statics/docs-ts-model.json +1501 -1460
- package/es/build/publisher/publisher.context.d.ts +1 -0
- package/es/build/subscriber/subscriber.context.d.ts +2 -0
- package/es/build/subscriber/subscriber.context.js +1 -0
- package/package.json +4 -4
|
@@ -15,13 +15,95 @@
|
|
|
15
15
|
"children": [
|
|
16
16
|
{
|
|
17
17
|
"id": 53,
|
|
18
|
+
"name": "PublishChannel",
|
|
19
|
+
"variant": "declaration",
|
|
20
|
+
"kind": 256,
|
|
21
|
+
"flags": {},
|
|
22
|
+
"comment": {
|
|
23
|
+
"summary": [
|
|
24
|
+
{
|
|
25
|
+
"kind": "text",
|
|
26
|
+
"text": "Realtime broadcast published channel. Publishers send messages to channels and subscribers listen to them."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"children": [
|
|
31
|
+
{
|
|
32
|
+
"id": 54,
|
|
33
|
+
"name": "name",
|
|
34
|
+
"variant": "declaration",
|
|
35
|
+
"kind": 1024,
|
|
36
|
+
"flags": {},
|
|
37
|
+
"comment": {
|
|
38
|
+
"summary": [
|
|
39
|
+
{
|
|
40
|
+
"kind": "text",
|
|
41
|
+
"text": "Channel name.\n\n> **Notes:**\n> - Supports only alphanumeric characters, hyphens, and underscores.\n> - The combined length of "
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "code",
|
|
45
|
+
"text": "`name`"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "text",
|
|
49
|
+
"text": " and "
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"kind": "code",
|
|
53
|
+
"text": "`resourceId`"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "text",
|
|
57
|
+
"text": " can't exceed 140 characters."
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"type": {
|
|
62
|
+
"type": "intrinsic",
|
|
63
|
+
"name": "string"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": 55,
|
|
68
|
+
"name": "resourceId",
|
|
69
|
+
"variant": "declaration",
|
|
70
|
+
"kind": 1024,
|
|
71
|
+
"flags": {
|
|
72
|
+
"isOptional": true
|
|
73
|
+
},
|
|
74
|
+
"comment": {
|
|
75
|
+
"summary": [
|
|
76
|
+
{
|
|
77
|
+
"kind": "text",
|
|
78
|
+
"text": "Resource ID.\n\nResources are independent sub-channels in a channel. A subscriber listening to a resource doesn't receive messages published to the parent channel, and vice versa."
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"type": {
|
|
83
|
+
"type": "intrinsic",
|
|
84
|
+
"name": "string"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"groups": [
|
|
89
|
+
{
|
|
90
|
+
"title": "Properties",
|
|
91
|
+
"children": [
|
|
92
|
+
54,
|
|
93
|
+
55
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": 56,
|
|
18
100
|
"name": "publish",
|
|
19
101
|
"variant": "declaration",
|
|
20
102
|
"kind": 64,
|
|
21
103
|
"flags": {},
|
|
22
104
|
"signatures": [
|
|
23
105
|
{
|
|
24
|
-
"id":
|
|
106
|
+
"id": 57,
|
|
25
107
|
"name": "publish",
|
|
26
108
|
"variant": "signature",
|
|
27
109
|
"kind": 4096,
|
|
@@ -109,7 +191,7 @@
|
|
|
109
191
|
},
|
|
110
192
|
"parameters": [
|
|
111
193
|
{
|
|
112
|
-
"id":
|
|
194
|
+
"id": 58,
|
|
113
195
|
"name": "channel",
|
|
114
196
|
"variant": "param",
|
|
115
197
|
"kind": 32768,
|
|
@@ -124,13 +206,13 @@
|
|
|
124
206
|
},
|
|
125
207
|
"type": {
|
|
126
208
|
"type": "reference",
|
|
127
|
-
"target":
|
|
128
|
-
"name": "
|
|
209
|
+
"target": 53,
|
|
210
|
+
"name": "PublishChannel",
|
|
129
211
|
"package": "@wix/realtime-common"
|
|
130
212
|
}
|
|
131
213
|
},
|
|
132
214
|
{
|
|
133
|
-
"id":
|
|
215
|
+
"id": 59,
|
|
134
216
|
"name": "payload",
|
|
135
217
|
"variant": "param",
|
|
136
218
|
"kind": 32768,
|
|
@@ -181,7 +263,7 @@
|
|
|
181
263
|
}
|
|
182
264
|
},
|
|
183
265
|
{
|
|
184
|
-
"id":
|
|
266
|
+
"id": 60,
|
|
185
267
|
"name": "publish",
|
|
186
268
|
"variant": "signature",
|
|
187
269
|
"kind": 4096,
|
|
@@ -269,7 +351,7 @@
|
|
|
269
351
|
},
|
|
270
352
|
"parameters": [
|
|
271
353
|
{
|
|
272
|
-
"id":
|
|
354
|
+
"id": 61,
|
|
273
355
|
"name": "httpClient",
|
|
274
356
|
"variant": "param",
|
|
275
357
|
"kind": 32768,
|
|
@@ -300,10 +382,16 @@
|
|
|
300
382
|
],
|
|
301
383
|
"groups": [
|
|
302
384
|
{
|
|
303
|
-
"title": "
|
|
385
|
+
"title": "Interfaces",
|
|
304
386
|
"children": [
|
|
305
387
|
53
|
|
306
388
|
]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"title": "Functions",
|
|
392
|
+
"children": [
|
|
393
|
+
56
|
|
394
|
+
]
|
|
307
395
|
}
|
|
308
396
|
]
|
|
309
397
|
},
|
|
@@ -1973,1533 +2061,1268 @@
|
|
|
1973
2061
|
]
|
|
1974
2062
|
},
|
|
1975
2063
|
{
|
|
1976
|
-
"id":
|
|
2064
|
+
"id": 62,
|
|
1977
2065
|
"name": "subscriber",
|
|
1978
2066
|
"variant": "declaration",
|
|
1979
2067
|
"kind": 4,
|
|
1980
2068
|
"flags": {},
|
|
1981
2069
|
"children": [
|
|
1982
2070
|
{
|
|
1983
|
-
"id":
|
|
1984
|
-
"name": "
|
|
2071
|
+
"id": 107,
|
|
2072
|
+
"name": "RealtimeErrorCode",
|
|
1985
2073
|
"variant": "declaration",
|
|
1986
|
-
"kind":
|
|
2074
|
+
"kind": 8,
|
|
1987
2075
|
"flags": {},
|
|
1988
|
-
"
|
|
2076
|
+
"comment": {
|
|
2077
|
+
"summary": [
|
|
2078
|
+
{
|
|
2079
|
+
"kind": "text",
|
|
2080
|
+
"text": "Error codes."
|
|
2081
|
+
}
|
|
2082
|
+
]
|
|
2083
|
+
},
|
|
2084
|
+
"children": [
|
|
1989
2085
|
{
|
|
1990
|
-
"id":
|
|
1991
|
-
"name": "
|
|
1992
|
-
"variant": "
|
|
1993
|
-
"kind":
|
|
2086
|
+
"id": 111,
|
|
2087
|
+
"name": "BadInput",
|
|
2088
|
+
"variant": "declaration",
|
|
2089
|
+
"kind": 16,
|
|
1994
2090
|
"flags": {},
|
|
1995
2091
|
"comment": {
|
|
1996
2092
|
"summary": [
|
|
1997
2093
|
{
|
|
1998
2094
|
"kind": "text",
|
|
1999
|
-
"text": "
|
|
2000
|
-
}
|
|
2095
|
+
"text": "Invalid input such as a channel name with unsupported characters."
|
|
2096
|
+
}
|
|
2097
|
+
]
|
|
2098
|
+
},
|
|
2099
|
+
"type": {
|
|
2100
|
+
"type": "literal",
|
|
2101
|
+
"value": "BAD_INPUT"
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"id": 109,
|
|
2106
|
+
"name": "ConnectionError",
|
|
2107
|
+
"variant": "declaration",
|
|
2108
|
+
"kind": 16,
|
|
2109
|
+
"flags": {},
|
|
2110
|
+
"comment": {
|
|
2111
|
+
"summary": [
|
|
2001
2112
|
{
|
|
2002
|
-
"kind": "
|
|
2003
|
-
"text": "
|
|
2004
|
-
}
|
|
2113
|
+
"kind": "text",
|
|
2114
|
+
"text": "Connection attempt failed. Wix automatically attempts to establish the subscription."
|
|
2115
|
+
}
|
|
2116
|
+
]
|
|
2117
|
+
},
|
|
2118
|
+
"type": {
|
|
2119
|
+
"type": "literal",
|
|
2120
|
+
"value": "CONNECTION_ERROR"
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"id": 108,
|
|
2125
|
+
"name": "Disconnected",
|
|
2126
|
+
"variant": "declaration",
|
|
2127
|
+
"kind": 16,
|
|
2128
|
+
"flags": {},
|
|
2129
|
+
"comment": {
|
|
2130
|
+
"summary": [
|
|
2005
2131
|
{
|
|
2006
2132
|
"kind": "text",
|
|
2007
|
-
"text": "
|
|
2133
|
+
"text": "Connection closed intentionally or due to an error. Check "
|
|
2008
2134
|
},
|
|
2009
2135
|
{
|
|
2010
2136
|
"kind": "code",
|
|
2011
|
-
"text": "`
|
|
2137
|
+
"text": "`error.recoverable`"
|
|
2012
2138
|
},
|
|
2013
2139
|
{
|
|
2014
2140
|
"kind": "text",
|
|
2015
|
-
"text": "
|
|
2016
|
-
}
|
|
2017
|
-
],
|
|
2018
|
-
"blockTags": [
|
|
2019
|
-
{
|
|
2020
|
-
"tag": "@example",
|
|
2021
|
-
"content": [
|
|
2022
|
-
{
|
|
2023
|
-
"kind": "text",
|
|
2024
|
-
"text": "Subscribe to a channel\n"
|
|
2025
|
-
},
|
|
2026
|
-
{
|
|
2027
|
-
"kind": "code",
|
|
2028
|
-
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nconst subscriptionId = subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n);\n```"
|
|
2029
|
-
}
|
|
2030
|
-
]
|
|
2031
|
-
},
|
|
2032
|
-
{
|
|
2033
|
-
"tag": "@example",
|
|
2034
|
-
"content": [
|
|
2035
|
-
{
|
|
2036
|
-
"kind": "text",
|
|
2037
|
-
"text": "Subscribe to a channel: Self-hosted\n"
|
|
2038
|
-
},
|
|
2039
|
-
{
|
|
2040
|
-
"kind": "code",
|
|
2041
|
-
"text": "```ts\nimport { createClient } from '@wix/sdk';\nimport { subscriber } from '@wix/realtime';\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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\nconst subscriptionId = client.subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n {\n onSubscribed: (id, isSynced) => console.log('Subscribed', id),\n onSubscriptionError: (error, id) => console.error('Error', error),\n },\n);\n```"
|
|
2042
|
-
}
|
|
2043
|
-
]
|
|
2044
|
-
},
|
|
2045
|
-
{
|
|
2046
|
-
"tag": "@requiredField",
|
|
2047
|
-
"content": [
|
|
2048
|
-
{
|
|
2049
|
-
"kind": "text",
|
|
2050
|
-
"text": "channel"
|
|
2051
|
-
}
|
|
2052
|
-
]
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
"tag": "@requiredField",
|
|
2056
|
-
"content": [
|
|
2057
|
-
{
|
|
2058
|
-
"kind": "text",
|
|
2059
|
-
"text": "messageHandler"
|
|
2060
|
-
}
|
|
2061
|
-
]
|
|
2141
|
+
"text": " to determine whether the client is attempting to reconnect."
|
|
2062
2142
|
}
|
|
2063
2143
|
]
|
|
2064
2144
|
},
|
|
2065
|
-
"parameters": [
|
|
2066
|
-
{
|
|
2067
|
-
"id": 62,
|
|
2068
|
-
"name": "channel",
|
|
2069
|
-
"variant": "param",
|
|
2070
|
-
"kind": 32768,
|
|
2071
|
-
"flags": {},
|
|
2072
|
-
"comment": {
|
|
2073
|
-
"summary": [
|
|
2074
|
-
{
|
|
2075
|
-
"kind": "text",
|
|
2076
|
-
"text": "Channel and resource to subscribe to."
|
|
2077
|
-
}
|
|
2078
|
-
]
|
|
2079
|
-
},
|
|
2080
|
-
"type": {
|
|
2081
|
-
"type": "reference",
|
|
2082
|
-
"target": 73,
|
|
2083
|
-
"name": "SubscribeChannel",
|
|
2084
|
-
"package": "@wix/realtime-common"
|
|
2085
|
-
}
|
|
2086
|
-
},
|
|
2087
|
-
{
|
|
2088
|
-
"id": 63,
|
|
2089
|
-
"name": "messageHandler",
|
|
2090
|
-
"variant": "param",
|
|
2091
|
-
"kind": 32768,
|
|
2092
|
-
"flags": {},
|
|
2093
|
-
"comment": {
|
|
2094
|
-
"summary": [
|
|
2095
|
-
{
|
|
2096
|
-
"kind": "text",
|
|
2097
|
-
"text": "Handler that runs whenever a message is published to the channel or resource."
|
|
2098
|
-
}
|
|
2099
|
-
]
|
|
2100
|
-
},
|
|
2101
|
-
"type": {
|
|
2102
|
-
"type": "reference",
|
|
2103
|
-
"target": 80,
|
|
2104
|
-
"name": "MessageHandler",
|
|
2105
|
-
"package": "@wix/realtime-common"
|
|
2106
|
-
}
|
|
2107
|
-
},
|
|
2108
|
-
{
|
|
2109
|
-
"id": 64,
|
|
2110
|
-
"name": "options",
|
|
2111
|
-
"variant": "param",
|
|
2112
|
-
"kind": 32768,
|
|
2113
|
-
"flags": {
|
|
2114
|
-
"isOptional": true
|
|
2115
|
-
},
|
|
2116
|
-
"comment": {
|
|
2117
|
-
"summary": [
|
|
2118
|
-
{
|
|
2119
|
-
"kind": "text",
|
|
2120
|
-
"text": "[Lifecycle handlers](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle) for subscription events."
|
|
2121
|
-
}
|
|
2122
|
-
]
|
|
2123
|
-
},
|
|
2124
|
-
"type": {
|
|
2125
|
-
"type": "reference",
|
|
2126
|
-
"target": 97,
|
|
2127
|
-
"name": "SubscriptionOptions",
|
|
2128
|
-
"package": "@wix/realtime-common"
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
],
|
|
2132
2145
|
"type": {
|
|
2133
|
-
"type": "
|
|
2134
|
-
"
|
|
2146
|
+
"type": "literal",
|
|
2147
|
+
"value": "DISCONNECTED"
|
|
2135
2148
|
}
|
|
2136
2149
|
},
|
|
2137
2150
|
{
|
|
2138
|
-
"id":
|
|
2139
|
-
"name": "
|
|
2140
|
-
"variant": "
|
|
2141
|
-
"kind":
|
|
2151
|
+
"id": 110,
|
|
2152
|
+
"name": "SubscriptionFailed",
|
|
2153
|
+
"variant": "declaration",
|
|
2154
|
+
"kind": 16,
|
|
2142
2155
|
"flags": {},
|
|
2143
2156
|
"comment": {
|
|
2144
2157
|
"summary": [
|
|
2145
2158
|
{
|
|
2146
2159
|
"kind": "text",
|
|
2147
|
-
"text": "
|
|
2148
|
-
},
|
|
2149
|
-
{
|
|
2150
|
-
"kind": "code",
|
|
2151
|
-
"text": "`options`"
|
|
2152
|
-
},
|
|
2153
|
-
{
|
|
2154
|
-
"kind": "text",
|
|
2155
|
-
"text": " parameter to register handlers that run whenever the subscription succeeds or generates an error. For some errors, the subscription is re-attempted automatically. The "
|
|
2156
|
-
},
|
|
2157
|
-
{
|
|
2158
|
-
"kind": "code",
|
|
2159
|
-
"text": "`onSubscribed()`"
|
|
2160
|
-
},
|
|
2161
|
-
{
|
|
2162
|
-
"kind": "text",
|
|
2163
|
-
"text": " handler runs on every successful re-subscription.\n\nLearn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle)."
|
|
2164
|
-
}
|
|
2165
|
-
],
|
|
2166
|
-
"blockTags": [
|
|
2167
|
-
{
|
|
2168
|
-
"tag": "@example",
|
|
2169
|
-
"content": [
|
|
2170
|
-
{
|
|
2171
|
-
"kind": "text",
|
|
2172
|
-
"text": "Subscribe to a channel\n"
|
|
2173
|
-
},
|
|
2174
|
-
{
|
|
2175
|
-
"kind": "code",
|
|
2176
|
-
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nconst subscriptionId = subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n);\n```"
|
|
2177
|
-
}
|
|
2178
|
-
]
|
|
2179
|
-
},
|
|
2180
|
-
{
|
|
2181
|
-
"tag": "@example",
|
|
2182
|
-
"content": [
|
|
2183
|
-
{
|
|
2184
|
-
"kind": "text",
|
|
2185
|
-
"text": "Subscribe to a channel: Self-hosted\n"
|
|
2186
|
-
},
|
|
2187
|
-
{
|
|
2188
|
-
"kind": "code",
|
|
2189
|
-
"text": "```ts\nimport { createClient } from '@wix/sdk';\nimport { subscriber } from '@wix/realtime';\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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\nconst subscriptionId = client.subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n {\n onSubscribed: (id, isSynced) => console.log('Subscribed', id),\n onSubscriptionError: (error, id) => console.error('Error', error),\n },\n);\n```"
|
|
2190
|
-
}
|
|
2191
|
-
]
|
|
2192
|
-
},
|
|
2193
|
-
{
|
|
2194
|
-
"tag": "@requiredField",
|
|
2195
|
-
"content": [
|
|
2196
|
-
{
|
|
2197
|
-
"kind": "text",
|
|
2198
|
-
"text": "channel"
|
|
2199
|
-
}
|
|
2200
|
-
]
|
|
2201
|
-
},
|
|
2202
|
-
{
|
|
2203
|
-
"tag": "@requiredField",
|
|
2204
|
-
"content": [
|
|
2205
|
-
{
|
|
2206
|
-
"kind": "text",
|
|
2207
|
-
"text": "messageHandler"
|
|
2208
|
-
}
|
|
2209
|
-
]
|
|
2160
|
+
"text": "Subscription request rejected, for example, due to an authorization failure. This error is non-recoverable."
|
|
2210
2161
|
}
|
|
2211
2162
|
]
|
|
2212
2163
|
},
|
|
2213
|
-
"
|
|
2164
|
+
"type": {
|
|
2165
|
+
"type": "literal",
|
|
2166
|
+
"value": "SUBSCRIPTION_FAILED"
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
],
|
|
2170
|
+
"groups": [
|
|
2171
|
+
{
|
|
2172
|
+
"title": "Enumeration Members",
|
|
2173
|
+
"children": [
|
|
2174
|
+
111,
|
|
2175
|
+
109,
|
|
2176
|
+
108,
|
|
2177
|
+
110
|
|
2178
|
+
]
|
|
2179
|
+
}
|
|
2180
|
+
]
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"id": 93,
|
|
2184
|
+
"name": "RealtimeError",
|
|
2185
|
+
"variant": "declaration",
|
|
2186
|
+
"kind": 128,
|
|
2187
|
+
"flags": {},
|
|
2188
|
+
"comment": {
|
|
2189
|
+
"summary": [
|
|
2190
|
+
{
|
|
2191
|
+
"kind": "text",
|
|
2192
|
+
"text": "Error thrown by a subscription or connection."
|
|
2193
|
+
}
|
|
2194
|
+
]
|
|
2195
|
+
},
|
|
2196
|
+
"children": [
|
|
2197
|
+
{
|
|
2198
|
+
"id": 94,
|
|
2199
|
+
"name": "constructor",
|
|
2200
|
+
"variant": "declaration",
|
|
2201
|
+
"kind": 512,
|
|
2202
|
+
"flags": {},
|
|
2203
|
+
"signatures": [
|
|
2214
2204
|
{
|
|
2215
|
-
"id":
|
|
2216
|
-
"name": "
|
|
2217
|
-
"variant": "
|
|
2218
|
-
"kind":
|
|
2205
|
+
"id": 95,
|
|
2206
|
+
"name": "new RealtimeError",
|
|
2207
|
+
"variant": "signature",
|
|
2208
|
+
"kind": 16384,
|
|
2219
2209
|
"flags": {},
|
|
2210
|
+
"parameters": [
|
|
2211
|
+
{
|
|
2212
|
+
"id": 96,
|
|
2213
|
+
"name": "errorCode",
|
|
2214
|
+
"variant": "param",
|
|
2215
|
+
"kind": 32768,
|
|
2216
|
+
"flags": {},
|
|
2217
|
+
"type": {
|
|
2218
|
+
"type": "reference",
|
|
2219
|
+
"target": 107,
|
|
2220
|
+
"name": "RealtimeErrorCode",
|
|
2221
|
+
"package": "@wix/realtime-common"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"id": 97,
|
|
2226
|
+
"name": "message",
|
|
2227
|
+
"variant": "param",
|
|
2228
|
+
"kind": 32768,
|
|
2229
|
+
"flags": {},
|
|
2230
|
+
"type": {
|
|
2231
|
+
"type": "intrinsic",
|
|
2232
|
+
"name": "string"
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"id": 98,
|
|
2237
|
+
"name": "options",
|
|
2238
|
+
"variant": "param",
|
|
2239
|
+
"kind": 32768,
|
|
2240
|
+
"flags": {
|
|
2241
|
+
"isOptional": true
|
|
2242
|
+
},
|
|
2243
|
+
"type": {
|
|
2244
|
+
"type": "reflection",
|
|
2245
|
+
"declaration": {
|
|
2246
|
+
"id": 99,
|
|
2247
|
+
"name": "__type",
|
|
2248
|
+
"variant": "declaration",
|
|
2249
|
+
"kind": 65536,
|
|
2250
|
+
"flags": {},
|
|
2251
|
+
"children": [
|
|
2252
|
+
{
|
|
2253
|
+
"id": 100,
|
|
2254
|
+
"name": "channel",
|
|
2255
|
+
"variant": "declaration",
|
|
2256
|
+
"kind": 1024,
|
|
2257
|
+
"flags": {
|
|
2258
|
+
"isOptional": true
|
|
2259
|
+
},
|
|
2260
|
+
"type": {
|
|
2261
|
+
"type": "reference",
|
|
2262
|
+
"target": 63,
|
|
2263
|
+
"name": "SubscribeChannel",
|
|
2264
|
+
"package": "@wix/realtime-common"
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"id": 101,
|
|
2269
|
+
"name": "recoverable",
|
|
2270
|
+
"variant": "declaration",
|
|
2271
|
+
"kind": 1024,
|
|
2272
|
+
"flags": {
|
|
2273
|
+
"isOptional": true
|
|
2274
|
+
},
|
|
2275
|
+
"type": {
|
|
2276
|
+
"type": "intrinsic",
|
|
2277
|
+
"name": "boolean"
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
"id": 102,
|
|
2282
|
+
"name": "status",
|
|
2283
|
+
"variant": "declaration",
|
|
2284
|
+
"kind": 1024,
|
|
2285
|
+
"flags": {
|
|
2286
|
+
"isOptional": true
|
|
2287
|
+
},
|
|
2288
|
+
"type": {
|
|
2289
|
+
"type": "intrinsic",
|
|
2290
|
+
"name": "number"
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
],
|
|
2294
|
+
"groups": [
|
|
2295
|
+
{
|
|
2296
|
+
"title": "Properties",
|
|
2297
|
+
"children": [
|
|
2298
|
+
100,
|
|
2299
|
+
101,
|
|
2300
|
+
102
|
|
2301
|
+
]
|
|
2302
|
+
}
|
|
2303
|
+
]
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
],
|
|
2220
2308
|
"type": {
|
|
2221
2309
|
"type": "reference",
|
|
2222
|
-
"target":
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
"
|
|
2310
|
+
"target": 93,
|
|
2311
|
+
"name": "RealtimeError",
|
|
2312
|
+
"package": "@wix/realtime-common"
|
|
2313
|
+
},
|
|
2314
|
+
"overwrites": {
|
|
2315
|
+
"type": "reference",
|
|
2316
|
+
"target": -1,
|
|
2317
|
+
"name": "Error.constructor"
|
|
2228
2318
|
}
|
|
2229
2319
|
}
|
|
2230
2320
|
],
|
|
2321
|
+
"overwrites": {
|
|
2322
|
+
"type": "reference",
|
|
2323
|
+
"target": -1,
|
|
2324
|
+
"name": "Error.constructor"
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"id": 104,
|
|
2329
|
+
"name": "channel",
|
|
2330
|
+
"variant": "declaration",
|
|
2331
|
+
"kind": 1024,
|
|
2332
|
+
"flags": {
|
|
2333
|
+
"isOptional": true
|
|
2334
|
+
},
|
|
2335
|
+
"comment": {
|
|
2336
|
+
"summary": [
|
|
2337
|
+
{
|
|
2338
|
+
"kind": "text",
|
|
2339
|
+
"text": "Channel that caused the error."
|
|
2340
|
+
}
|
|
2341
|
+
]
|
|
2342
|
+
},
|
|
2231
2343
|
"type": {
|
|
2232
2344
|
"type": "reference",
|
|
2233
|
-
"target":
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
},
|
|
2237
|
-
"name": "SubscribeSignature",
|
|
2238
|
-
"package": "@wix/realtime"
|
|
2345
|
+
"target": 63,
|
|
2346
|
+
"name": "SubscribeChannel",
|
|
2347
|
+
"package": "@wix/realtime-common"
|
|
2239
2348
|
}
|
|
2240
|
-
}
|
|
2241
|
-
]
|
|
2242
|
-
},
|
|
2243
|
-
{
|
|
2244
|
-
"id": 67,
|
|
2245
|
-
"name": "unsubscribe",
|
|
2246
|
-
"variant": "declaration",
|
|
2247
|
-
"kind": 64,
|
|
2248
|
-
"flags": {},
|
|
2249
|
-
"signatures": [
|
|
2349
|
+
},
|
|
2250
2350
|
{
|
|
2251
|
-
"id":
|
|
2252
|
-
"name": "
|
|
2253
|
-
"variant": "
|
|
2254
|
-
"kind":
|
|
2351
|
+
"id": 103,
|
|
2352
|
+
"name": "errorCode",
|
|
2353
|
+
"variant": "declaration",
|
|
2354
|
+
"kind": 1024,
|
|
2255
2355
|
"flags": {},
|
|
2256
2356
|
"comment": {
|
|
2257
2357
|
"summary": [
|
|
2258
2358
|
{
|
|
2259
2359
|
"kind": "text",
|
|
2260
|
-
"text": "
|
|
2360
|
+
"text": "Error code."
|
|
2361
|
+
}
|
|
2362
|
+
]
|
|
2363
|
+
},
|
|
2364
|
+
"type": {
|
|
2365
|
+
"type": "reference",
|
|
2366
|
+
"target": 107,
|
|
2367
|
+
"name": "RealtimeErrorCode",
|
|
2368
|
+
"package": "@wix/realtime-common"
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"id": 105,
|
|
2373
|
+
"name": "recoverable",
|
|
2374
|
+
"variant": "declaration",
|
|
2375
|
+
"kind": 1024,
|
|
2376
|
+
"flags": {
|
|
2377
|
+
"isOptional": true
|
|
2378
|
+
},
|
|
2379
|
+
"comment": {
|
|
2380
|
+
"summary": [
|
|
2381
|
+
{
|
|
2382
|
+
"kind": "text",
|
|
2383
|
+
"text": "Whether the error is automatically recoverable.\n\nWhen "
|
|
2261
2384
|
},
|
|
2262
2385
|
{
|
|
2263
2386
|
"kind": "code",
|
|
2264
|
-
"text": "`
|
|
2387
|
+
"text": "`true`"
|
|
2265
2388
|
},
|
|
2266
2389
|
{
|
|
2267
2390
|
"kind": "text",
|
|
2268
|
-
"text": "
|
|
2391
|
+
"text": ", the client automatically attempts to reconnect. When "
|
|
2269
2392
|
},
|
|
2270
2393
|
{
|
|
2271
2394
|
"kind": "code",
|
|
2272
|
-
"text": "`
|
|
2395
|
+
"text": "`false`"
|
|
2273
2396
|
},
|
|
2274
2397
|
{
|
|
2275
2398
|
"kind": "text",
|
|
2276
|
-
"text": "
|
|
2277
|
-
}
|
|
2278
|
-
],
|
|
2279
|
-
"blockTags": [
|
|
2280
|
-
{
|
|
2281
|
-
"tag": "@example",
|
|
2282
|
-
"content": [
|
|
2283
|
-
{
|
|
2284
|
-
"kind": "text",
|
|
2285
|
-
"text": "Remove the specified subscription.\n"
|
|
2286
|
-
},
|
|
2287
|
-
{
|
|
2288
|
-
"kind": "code",
|
|
2289
|
-
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nsubscriber.unsubscribe({ subscriptionId });\n```"
|
|
2290
|
-
}
|
|
2291
|
-
]
|
|
2399
|
+
"text": ", you must attempt to re-subscribe manually.\n\nDefault: "
|
|
2292
2400
|
},
|
|
2293
2401
|
{
|
|
2294
|
-
"
|
|
2295
|
-
"
|
|
2296
|
-
{
|
|
2297
|
-
"kind": "text",
|
|
2298
|
-
"text": "Remove the specified subscription: Self-hosted\n"
|
|
2299
|
-
},
|
|
2300
|
-
{
|
|
2301
|
-
"kind": "code",
|
|
2302
|
-
"text": "```ts\nimport { subscriber } 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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\n// Remove the specified subscription\nclient.subscriber.unsubscribe({ subscriptionId });\n\n// Remove all subscriptions from the specified channel\nclient.subscriber.unsubscribe({ channel: { name: 'my-channel' } });\n```"
|
|
2303
|
-
}
|
|
2304
|
-
]
|
|
2402
|
+
"kind": "code",
|
|
2403
|
+
"text": "`false`"
|
|
2305
2404
|
},
|
|
2306
2405
|
{
|
|
2307
|
-
"
|
|
2308
|
-
"
|
|
2309
|
-
{
|
|
2310
|
-
"kind": "text",
|
|
2311
|
-
"text": "options"
|
|
2312
|
-
}
|
|
2313
|
-
]
|
|
2406
|
+
"kind": "text",
|
|
2407
|
+
"text": "."
|
|
2314
2408
|
}
|
|
2315
2409
|
]
|
|
2316
2410
|
},
|
|
2317
|
-
"parameters": [
|
|
2318
|
-
{
|
|
2319
|
-
"id": 69,
|
|
2320
|
-
"name": "options",
|
|
2321
|
-
"variant": "param",
|
|
2322
|
-
"kind": 32768,
|
|
2323
|
-
"flags": {},
|
|
2324
|
-
"comment": {
|
|
2325
|
-
"summary": [
|
|
2326
|
-
{
|
|
2327
|
-
"kind": "text",
|
|
2328
|
-
"text": "Unsubscribe details. You must specify "
|
|
2329
|
-
},
|
|
2330
|
-
{
|
|
2331
|
-
"kind": "code",
|
|
2332
|
-
"text": "`channel`"
|
|
2333
|
-
},
|
|
2334
|
-
{
|
|
2335
|
-
"kind": "text",
|
|
2336
|
-
"text": ", "
|
|
2337
|
-
},
|
|
2338
|
-
{
|
|
2339
|
-
"kind": "code",
|
|
2340
|
-
"text": "`subscriptionId`"
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
"kind": "text",
|
|
2344
|
-
"text": ", or both."
|
|
2345
|
-
}
|
|
2346
|
-
]
|
|
2347
|
-
},
|
|
2348
|
-
"type": {
|
|
2349
|
-
"type": "reference",
|
|
2350
|
-
"target": 100,
|
|
2351
|
-
"name": "UnsubscribeOptions",
|
|
2352
|
-
"package": "@wix/realtime-common"
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
],
|
|
2356
2411
|
"type": {
|
|
2357
2412
|
"type": "intrinsic",
|
|
2358
|
-
"name": "
|
|
2413
|
+
"name": "boolean"
|
|
2359
2414
|
}
|
|
2360
2415
|
},
|
|
2361
2416
|
{
|
|
2362
|
-
"id":
|
|
2363
|
-
"name": "
|
|
2364
|
-
"variant": "
|
|
2365
|
-
"kind":
|
|
2366
|
-
"flags": {
|
|
2417
|
+
"id": 106,
|
|
2418
|
+
"name": "status",
|
|
2419
|
+
"variant": "declaration",
|
|
2420
|
+
"kind": 1024,
|
|
2421
|
+
"flags": {
|
|
2422
|
+
"isOptional": true
|
|
2423
|
+
},
|
|
2367
2424
|
"comment": {
|
|
2368
2425
|
"summary": [
|
|
2369
2426
|
{
|
|
2370
2427
|
"kind": "text",
|
|
2371
|
-
"text": "
|
|
2428
|
+
"text": "[HTTP status code](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/troubleshooting/about-errors#http-status-codes).\n\nReturned only when "
|
|
2372
2429
|
},
|
|
2373
2430
|
{
|
|
2374
2431
|
"kind": "code",
|
|
2375
|
-
"text": "`
|
|
2376
|
-
},
|
|
2377
|
-
{
|
|
2378
|
-
"kind": "text",
|
|
2379
|
-
"text": "
|
|
2380
|
-
},
|
|
2381
|
-
{
|
|
2382
|
-
"kind": "code",
|
|
2383
|
-
"text": "`
|
|
2384
|
-
},
|
|
2385
|
-
{
|
|
2386
|
-
"kind": "text",
|
|
2387
|
-
"text": "
|
|
2388
|
-
}
|
|
2389
|
-
]
|
|
2390
|
-
"blockTags": [
|
|
2391
|
-
{
|
|
2392
|
-
"tag": "@example",
|
|
2393
|
-
"content": [
|
|
2394
|
-
{
|
|
2395
|
-
"kind": "text",
|
|
2396
|
-
"text": "Remove the specified subscription.\n"
|
|
2397
|
-
},
|
|
2398
|
-
{
|
|
2399
|
-
"kind": "code",
|
|
2400
|
-
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nsubscriber.unsubscribe({ subscriptionId });\n```"
|
|
2401
|
-
}
|
|
2402
|
-
]
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
"tag": "@example",
|
|
2406
|
-
"content": [
|
|
2407
|
-
{
|
|
2408
|
-
"kind": "text",
|
|
2409
|
-
"text": "Remove the specified subscription: Self-hosted\n"
|
|
2410
|
-
},
|
|
2411
|
-
{
|
|
2412
|
-
"kind": "code",
|
|
2413
|
-
"text": "```ts\nimport { subscriber } 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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\n// Remove the specified subscription\nclient.subscriber.unsubscribe({ subscriptionId });\n\n// Remove all subscriptions from the specified channel\nclient.subscriber.unsubscribe({ channel: { name: 'my-channel' } });\n```"
|
|
2414
|
-
}
|
|
2415
|
-
]
|
|
2416
|
-
},
|
|
2417
|
-
{
|
|
2418
|
-
"tag": "@requiredField",
|
|
2419
|
-
"content": [
|
|
2420
|
-
{
|
|
2421
|
-
"kind": "text",
|
|
2422
|
-
"text": "options"
|
|
2423
|
-
}
|
|
2424
|
-
]
|
|
2425
|
-
}
|
|
2426
|
-
]
|
|
2427
|
-
},
|
|
2428
|
-
"parameters": [
|
|
2429
|
-
{
|
|
2430
|
-
"id": 71,
|
|
2431
|
-
"name": "_",
|
|
2432
|
-
"variant": "param",
|
|
2433
|
-
"kind": 32768,
|
|
2434
|
-
"flags": {},
|
|
2435
|
-
"type": {
|
|
2436
|
-
"type": "reference",
|
|
2437
|
-
"target": {
|
|
2438
|
-
"sourceFileName": "../../node_modules/@wix/sdk-types/build/index.d.ts",
|
|
2439
|
-
"qualifiedName": "HttpClient"
|
|
2440
|
-
},
|
|
2441
|
-
"name": "HttpClient",
|
|
2442
|
-
"package": "@wix/sdk-types"
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
],
|
|
2446
|
-
"type": {
|
|
2447
|
-
"type": "reference",
|
|
2448
|
-
"target": {
|
|
2449
|
-
"sourceFileName": "src/subscriber/subscriber.public.ts",
|
|
2450
|
-
"qualifiedName": "UnsubscribeSignature"
|
|
2451
|
-
},
|
|
2452
|
-
"name": "UnsubscribeSignature",
|
|
2453
|
-
"package": "@wix/realtime"
|
|
2454
|
-
}
|
|
2455
|
-
}
|
|
2456
|
-
]
|
|
2457
|
-
}
|
|
2458
|
-
],
|
|
2459
|
-
"groups": [
|
|
2460
|
-
{
|
|
2461
|
-
"title": "Functions",
|
|
2462
|
-
"children": [
|
|
2463
|
-
60,
|
|
2464
|
-
67
|
|
2465
|
-
]
|
|
2466
|
-
}
|
|
2467
|
-
]
|
|
2468
|
-
},
|
|
2469
|
-
{
|
|
2470
|
-
"id": 117,
|
|
2471
|
-
"name": "RealtimeErrorCode",
|
|
2472
|
-
"variant": "declaration",
|
|
2473
|
-
"kind": 8,
|
|
2474
|
-
"flags": {},
|
|
2475
|
-
"comment": {
|
|
2476
|
-
"summary": [
|
|
2477
|
-
{
|
|
2478
|
-
"kind": "text",
|
|
2479
|
-
"text": "Error codes."
|
|
2480
|
-
}
|
|
2481
|
-
]
|
|
2482
|
-
},
|
|
2483
|
-
"children": [
|
|
2484
|
-
{
|
|
2485
|
-
"id": 121,
|
|
2486
|
-
"name": "BadInput",
|
|
2487
|
-
"variant": "declaration",
|
|
2488
|
-
"kind": 16,
|
|
2489
|
-
"flags": {},
|
|
2490
|
-
"comment": {
|
|
2491
|
-
"summary": [
|
|
2492
|
-
{
|
|
2493
|
-
"kind": "text",
|
|
2494
|
-
"text": "Invalid input such as a channel name with unsupported characters."
|
|
2495
|
-
}
|
|
2496
|
-
]
|
|
2497
|
-
},
|
|
2498
|
-
"type": {
|
|
2499
|
-
"type": "literal",
|
|
2500
|
-
"value": "BAD_INPUT"
|
|
2501
|
-
}
|
|
2502
|
-
},
|
|
2503
|
-
{
|
|
2504
|
-
"id": 119,
|
|
2505
|
-
"name": "ConnectionError",
|
|
2506
|
-
"variant": "declaration",
|
|
2507
|
-
"kind": 16,
|
|
2508
|
-
"flags": {},
|
|
2509
|
-
"comment": {
|
|
2510
|
-
"summary": [
|
|
2511
|
-
{
|
|
2512
|
-
"kind": "text",
|
|
2513
|
-
"text": "Connection attempt failed. Wix automatically attempts to establish the subscription."
|
|
2514
|
-
}
|
|
2515
|
-
]
|
|
2516
|
-
},
|
|
2517
|
-
"type": {
|
|
2518
|
-
"type": "literal",
|
|
2519
|
-
"value": "CONNECTION_ERROR"
|
|
2520
|
-
}
|
|
2521
|
-
},
|
|
2522
|
-
{
|
|
2523
|
-
"id": 118,
|
|
2524
|
-
"name": "Disconnected",
|
|
2525
|
-
"variant": "declaration",
|
|
2526
|
-
"kind": 16,
|
|
2527
|
-
"flags": {},
|
|
2528
|
-
"comment": {
|
|
2529
|
-
"summary": [
|
|
2530
|
-
{
|
|
2531
|
-
"kind": "text",
|
|
2532
|
-
"text": "Connection closed intentionally or due to an error. Check "
|
|
2533
|
-
},
|
|
2534
|
-
{
|
|
2535
|
-
"kind": "code",
|
|
2536
|
-
"text": "`error.recoverable`"
|
|
2537
|
-
},
|
|
2538
|
-
{
|
|
2539
|
-
"kind": "text",
|
|
2540
|
-
"text": " to determine whether the client is attempting to reconnect."
|
|
2541
|
-
}
|
|
2542
|
-
]
|
|
2543
|
-
},
|
|
2544
|
-
"type": {
|
|
2545
|
-
"type": "literal",
|
|
2546
|
-
"value": "DISCONNECTED"
|
|
2547
|
-
}
|
|
2548
|
-
},
|
|
2549
|
-
{
|
|
2550
|
-
"id": 120,
|
|
2551
|
-
"name": "SubscriptionFailed",
|
|
2552
|
-
"variant": "declaration",
|
|
2553
|
-
"kind": 16,
|
|
2554
|
-
"flags": {},
|
|
2555
|
-
"comment": {
|
|
2556
|
-
"summary": [
|
|
2557
|
-
{
|
|
2558
|
-
"kind": "text",
|
|
2559
|
-
"text": "Subscription request rejected, for example, due to an authorization failure. This error is non-recoverable."
|
|
2560
|
-
}
|
|
2561
|
-
]
|
|
2562
|
-
},
|
|
2563
|
-
"type": {
|
|
2564
|
-
"type": "literal",
|
|
2565
|
-
"value": "SUBSCRIPTION_FAILED"
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
],
|
|
2569
|
-
"groups": [
|
|
2570
|
-
{
|
|
2571
|
-
"title": "Enumeration Members",
|
|
2572
|
-
"children": [
|
|
2573
|
-
121,
|
|
2574
|
-
119,
|
|
2575
|
-
118,
|
|
2576
|
-
120
|
|
2577
|
-
]
|
|
2578
|
-
}
|
|
2579
|
-
]
|
|
2580
|
-
},
|
|
2581
|
-
{
|
|
2582
|
-
"id": 103,
|
|
2583
|
-
"name": "RealtimeError",
|
|
2584
|
-
"variant": "declaration",
|
|
2585
|
-
"kind": 128,
|
|
2586
|
-
"flags": {},
|
|
2587
|
-
"comment": {
|
|
2588
|
-
"summary": [
|
|
2589
|
-
{
|
|
2590
|
-
"kind": "text",
|
|
2591
|
-
"text": "Error thrown by a subscription or connection."
|
|
2592
|
-
}
|
|
2593
|
-
]
|
|
2594
|
-
},
|
|
2595
|
-
"children": [
|
|
2596
|
-
{
|
|
2597
|
-
"id": 104,
|
|
2598
|
-
"name": "constructor",
|
|
2599
|
-
"variant": "declaration",
|
|
2600
|
-
"kind": 512,
|
|
2601
|
-
"flags": {},
|
|
2602
|
-
"signatures": [
|
|
2603
|
-
{
|
|
2604
|
-
"id": 105,
|
|
2605
|
-
"name": "new RealtimeError",
|
|
2606
|
-
"variant": "signature",
|
|
2607
|
-
"kind": 16384,
|
|
2608
|
-
"flags": {},
|
|
2609
|
-
"parameters": [
|
|
2610
|
-
{
|
|
2611
|
-
"id": 106,
|
|
2612
|
-
"name": "errorCode",
|
|
2613
|
-
"variant": "param",
|
|
2614
|
-
"kind": 32768,
|
|
2615
|
-
"flags": {},
|
|
2616
|
-
"type": {
|
|
2617
|
-
"type": "reference",
|
|
2618
|
-
"target": 117,
|
|
2619
|
-
"name": "RealtimeErrorCode",
|
|
2620
|
-
"package": "@wix/realtime-common"
|
|
2621
|
-
}
|
|
2622
|
-
},
|
|
2623
|
-
{
|
|
2624
|
-
"id": 107,
|
|
2625
|
-
"name": "message",
|
|
2626
|
-
"variant": "param",
|
|
2627
|
-
"kind": 32768,
|
|
2628
|
-
"flags": {},
|
|
2629
|
-
"type": {
|
|
2630
|
-
"type": "intrinsic",
|
|
2631
|
-
"name": "string"
|
|
2632
|
-
}
|
|
2633
|
-
},
|
|
2634
|
-
{
|
|
2635
|
-
"id": 108,
|
|
2636
|
-
"name": "options",
|
|
2637
|
-
"variant": "param",
|
|
2638
|
-
"kind": 32768,
|
|
2639
|
-
"flags": {
|
|
2640
|
-
"isOptional": true
|
|
2641
|
-
},
|
|
2642
|
-
"type": {
|
|
2643
|
-
"type": "reflection",
|
|
2644
|
-
"declaration": {
|
|
2645
|
-
"id": 109,
|
|
2646
|
-
"name": "__type",
|
|
2647
|
-
"variant": "declaration",
|
|
2648
|
-
"kind": 65536,
|
|
2649
|
-
"flags": {},
|
|
2650
|
-
"children": [
|
|
2651
|
-
{
|
|
2652
|
-
"id": 110,
|
|
2653
|
-
"name": "channel",
|
|
2654
|
-
"variant": "declaration",
|
|
2655
|
-
"kind": 1024,
|
|
2656
|
-
"flags": {
|
|
2657
|
-
"isOptional": true
|
|
2658
|
-
},
|
|
2659
|
-
"type": {
|
|
2660
|
-
"type": "reference",
|
|
2661
|
-
"target": 73,
|
|
2662
|
-
"name": "SubscribeChannel",
|
|
2663
|
-
"package": "@wix/realtime-common"
|
|
2664
|
-
}
|
|
2665
|
-
},
|
|
2666
|
-
{
|
|
2667
|
-
"id": 111,
|
|
2668
|
-
"name": "recoverable",
|
|
2669
|
-
"variant": "declaration",
|
|
2670
|
-
"kind": 1024,
|
|
2671
|
-
"flags": {
|
|
2672
|
-
"isOptional": true
|
|
2673
|
-
},
|
|
2674
|
-
"type": {
|
|
2675
|
-
"type": "intrinsic",
|
|
2676
|
-
"name": "boolean"
|
|
2677
|
-
}
|
|
2678
|
-
},
|
|
2679
|
-
{
|
|
2680
|
-
"id": 112,
|
|
2681
|
-
"name": "status",
|
|
2682
|
-
"variant": "declaration",
|
|
2683
|
-
"kind": 1024,
|
|
2684
|
-
"flags": {
|
|
2685
|
-
"isOptional": true
|
|
2686
|
-
},
|
|
2687
|
-
"type": {
|
|
2688
|
-
"type": "intrinsic",
|
|
2689
|
-
"name": "number"
|
|
2690
|
-
}
|
|
2691
|
-
}
|
|
2692
|
-
],
|
|
2693
|
-
"groups": [
|
|
2694
|
-
{
|
|
2695
|
-
"title": "Properties",
|
|
2696
|
-
"children": [
|
|
2697
|
-
110,
|
|
2698
|
-
111,
|
|
2699
|
-
112
|
|
2700
|
-
]
|
|
2701
|
-
}
|
|
2702
|
-
]
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
],
|
|
2707
|
-
"type": {
|
|
2708
|
-
"type": "reference",
|
|
2709
|
-
"target": 103,
|
|
2710
|
-
"name": "RealtimeError",
|
|
2711
|
-
"package": "@wix/realtime-common"
|
|
2712
|
-
},
|
|
2713
|
-
"overwrites": {
|
|
2714
|
-
"type": "reference",
|
|
2715
|
-
"target": -1,
|
|
2716
|
-
"name": "Error.constructor"
|
|
2717
|
-
}
|
|
2718
|
-
}
|
|
2719
|
-
],
|
|
2720
|
-
"overwrites": {
|
|
2721
|
-
"type": "reference",
|
|
2722
|
-
"target": -1,
|
|
2723
|
-
"name": "Error.constructor"
|
|
2724
|
-
}
|
|
2725
|
-
},
|
|
2726
|
-
{
|
|
2727
|
-
"id": 114,
|
|
2728
|
-
"name": "channel",
|
|
2729
|
-
"variant": "declaration",
|
|
2730
|
-
"kind": 1024,
|
|
2731
|
-
"flags": {
|
|
2732
|
-
"isOptional": true
|
|
2733
|
-
},
|
|
2734
|
-
"comment": {
|
|
2735
|
-
"summary": [
|
|
2736
|
-
{
|
|
2737
|
-
"kind": "text",
|
|
2738
|
-
"text": "Channel that caused the error."
|
|
2739
|
-
}
|
|
2740
|
-
]
|
|
2741
|
-
},
|
|
2742
|
-
"type": {
|
|
2743
|
-
"type": "reference",
|
|
2744
|
-
"target": 73,
|
|
2745
|
-
"name": "SubscribeChannel",
|
|
2746
|
-
"package": "@wix/realtime-common"
|
|
2747
|
-
}
|
|
2748
|
-
},
|
|
2749
|
-
{
|
|
2750
|
-
"id": 113,
|
|
2751
|
-
"name": "errorCode",
|
|
2752
|
-
"variant": "declaration",
|
|
2753
|
-
"kind": 1024,
|
|
2754
|
-
"flags": {},
|
|
2755
|
-
"comment": {
|
|
2756
|
-
"summary": [
|
|
2757
|
-
{
|
|
2758
|
-
"kind": "text",
|
|
2759
|
-
"text": "Error code."
|
|
2760
|
-
}
|
|
2761
|
-
]
|
|
2762
|
-
},
|
|
2763
|
-
"type": {
|
|
2764
|
-
"type": "reference",
|
|
2765
|
-
"target": 117,
|
|
2766
|
-
"name": "RealtimeErrorCode",
|
|
2767
|
-
"package": "@wix/realtime-common"
|
|
2768
|
-
}
|
|
2769
|
-
},
|
|
2770
|
-
{
|
|
2771
|
-
"id": 115,
|
|
2772
|
-
"name": "recoverable",
|
|
2773
|
-
"variant": "declaration",
|
|
2774
|
-
"kind": 1024,
|
|
2775
|
-
"flags": {
|
|
2776
|
-
"isOptional": true
|
|
2777
|
-
},
|
|
2778
|
-
"comment": {
|
|
2779
|
-
"summary": [
|
|
2780
|
-
{
|
|
2781
|
-
"kind": "text",
|
|
2782
|
-
"text": "Whether the error is automatically recoverable.\n\nWhen "
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
"kind": "code",
|
|
2786
|
-
"text": "`true`"
|
|
2787
|
-
},
|
|
2788
|
-
{
|
|
2789
|
-
"kind": "text",
|
|
2790
|
-
"text": ", the client automatically attempts to reconnect. When "
|
|
2791
|
-
},
|
|
2792
|
-
{
|
|
2793
|
-
"kind": "code",
|
|
2794
|
-
"text": "`false`"
|
|
2795
|
-
},
|
|
2796
|
-
{
|
|
2797
|
-
"kind": "text",
|
|
2798
|
-
"text": ", you must attempt to re-subscribe manually.\n\nDefault: "
|
|
2799
|
-
},
|
|
2800
|
-
{
|
|
2801
|
-
"kind": "code",
|
|
2802
|
-
"text": "`false`"
|
|
2803
|
-
},
|
|
2804
|
-
{
|
|
2805
|
-
"kind": "text",
|
|
2806
|
-
"text": "."
|
|
2807
|
-
}
|
|
2808
|
-
]
|
|
2809
|
-
},
|
|
2810
|
-
"type": {
|
|
2811
|
-
"type": "intrinsic",
|
|
2812
|
-
"name": "boolean"
|
|
2813
|
-
}
|
|
2814
|
-
},
|
|
2815
|
-
{
|
|
2816
|
-
"id": 116,
|
|
2817
|
-
"name": "status",
|
|
2818
|
-
"variant": "declaration",
|
|
2819
|
-
"kind": 1024,
|
|
2820
|
-
"flags": {
|
|
2821
|
-
"isOptional": true
|
|
2822
|
-
},
|
|
2823
|
-
"comment": {
|
|
2824
|
-
"summary": [
|
|
2825
|
-
{
|
|
2826
|
-
"kind": "text",
|
|
2827
|
-
"text": "[HTTP status code](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/troubleshooting/about-errors#http-status-codes).\n\nReturned only when "
|
|
2828
|
-
},
|
|
2829
|
-
{
|
|
2830
|
-
"kind": "code",
|
|
2831
|
-
"text": "`errorCode`"
|
|
2832
|
-
},
|
|
2833
|
-
{
|
|
2834
|
-
"kind": "text",
|
|
2835
|
-
"text": " is "
|
|
2836
|
-
},
|
|
2837
|
-
{
|
|
2838
|
-
"kind": "code",
|
|
2839
|
-
"text": "`SUBSCRIPTION_FAILED`"
|
|
2432
|
+
"text": "`errorCode`"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"kind": "text",
|
|
2436
|
+
"text": " is "
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"kind": "code",
|
|
2440
|
+
"text": "`SUBSCRIPTION_FAILED`"
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
"kind": "text",
|
|
2444
|
+
"text": "."
|
|
2445
|
+
}
|
|
2446
|
+
]
|
|
2840
2447
|
},
|
|
2841
|
-
{
|
|
2842
|
-
"
|
|
2843
|
-
"
|
|
2448
|
+
"type": {
|
|
2449
|
+
"type": "intrinsic",
|
|
2450
|
+
"name": "number"
|
|
2844
2451
|
}
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
"
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2452
|
+
}
|
|
2453
|
+
],
|
|
2454
|
+
"groups": [
|
|
2455
|
+
{
|
|
2456
|
+
"title": "Constructors",
|
|
2457
|
+
"children": [
|
|
2458
|
+
94
|
|
2459
|
+
]
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
"title": "Properties",
|
|
2463
|
+
"children": [
|
|
2464
|
+
104,
|
|
2465
|
+
103,
|
|
2466
|
+
105,
|
|
2467
|
+
106
|
|
2468
|
+
]
|
|
2469
|
+
}
|
|
2470
|
+
],
|
|
2471
|
+
"extendedTypes": [
|
|
2472
|
+
{
|
|
2473
|
+
"type": "reference",
|
|
2474
|
+
"target": {
|
|
2475
|
+
"sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts",
|
|
2476
|
+
"qualifiedName": "Error"
|
|
2477
|
+
},
|
|
2478
|
+
"name": "Error",
|
|
2479
|
+
"package": "typescript"
|
|
2480
|
+
}
|
|
2858
2481
|
]
|
|
2859
2482
|
},
|
|
2860
2483
|
{
|
|
2861
|
-
"
|
|
2862
|
-
"
|
|
2863
|
-
114,
|
|
2864
|
-
113,
|
|
2865
|
-
115,
|
|
2866
|
-
116
|
|
2867
|
-
]
|
|
2868
|
-
}
|
|
2869
|
-
],
|
|
2870
|
-
"extendedTypes": [
|
|
2871
|
-
{
|
|
2872
|
-
"type": "reference",
|
|
2873
|
-
"target": {
|
|
2874
|
-
"sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts",
|
|
2875
|
-
"qualifiedName": "Error"
|
|
2876
|
-
},
|
|
2877
|
-
"name": "Error",
|
|
2878
|
-
"package": "typescript"
|
|
2879
|
-
}
|
|
2880
|
-
]
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
"id": 77,
|
|
2884
|
-
"name": "Message",
|
|
2885
|
-
"variant": "declaration",
|
|
2886
|
-
"kind": 256,
|
|
2887
|
-
"flags": {},
|
|
2888
|
-
"comment": {
|
|
2889
|
-
"summary": [
|
|
2890
|
-
{
|
|
2891
|
-
"kind": "text",
|
|
2892
|
-
"text": "Message received on a channel."
|
|
2893
|
-
}
|
|
2894
|
-
]
|
|
2895
|
-
},
|
|
2896
|
-
"children": [
|
|
2897
|
-
{
|
|
2898
|
-
"id": 78,
|
|
2899
|
-
"name": "payload",
|
|
2484
|
+
"id": 67,
|
|
2485
|
+
"name": "Message",
|
|
2900
2486
|
"variant": "declaration",
|
|
2901
|
-
"kind":
|
|
2487
|
+
"kind": 256,
|
|
2902
2488
|
"flags": {},
|
|
2903
2489
|
"comment": {
|
|
2904
2490
|
"summary": [
|
|
2905
2491
|
{
|
|
2906
2492
|
"kind": "text",
|
|
2907
|
-
"text": "Message
|
|
2493
|
+
"text": "Message received on a channel."
|
|
2908
2494
|
}
|
|
2909
2495
|
]
|
|
2910
2496
|
},
|
|
2911
|
-
"
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
"
|
|
2915
|
-
"
|
|
2497
|
+
"children": [
|
|
2498
|
+
{
|
|
2499
|
+
"id": 68,
|
|
2500
|
+
"name": "payload",
|
|
2501
|
+
"variant": "declaration",
|
|
2502
|
+
"kind": 1024,
|
|
2503
|
+
"flags": {},
|
|
2504
|
+
"comment": {
|
|
2505
|
+
"summary": [
|
|
2506
|
+
{
|
|
2507
|
+
"kind": "text",
|
|
2508
|
+
"text": "Message payload that contains the published data.\n\nMax: 10 KB."
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
},
|
|
2512
|
+
"type": {
|
|
2513
|
+
"type": "reference",
|
|
2514
|
+
"target": {
|
|
2515
|
+
"sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts",
|
|
2516
|
+
"qualifiedName": "Record"
|
|
2517
|
+
},
|
|
2518
|
+
"typeArguments": [
|
|
2519
|
+
{
|
|
2520
|
+
"type": "intrinsic",
|
|
2521
|
+
"name": "string"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
"type": "intrinsic",
|
|
2525
|
+
"name": "any"
|
|
2526
|
+
}
|
|
2527
|
+
],
|
|
2528
|
+
"name": "Record",
|
|
2529
|
+
"package": "typescript"
|
|
2530
|
+
}
|
|
2916
2531
|
},
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2532
|
+
{
|
|
2533
|
+
"id": 69,
|
|
2534
|
+
"name": "publisher",
|
|
2535
|
+
"variant": "declaration",
|
|
2536
|
+
"kind": 1024,
|
|
2537
|
+
"flags": {
|
|
2538
|
+
"isOptional": true
|
|
2921
2539
|
},
|
|
2922
|
-
{
|
|
2923
|
-
"
|
|
2924
|
-
|
|
2540
|
+
"comment": {
|
|
2541
|
+
"summary": [
|
|
2542
|
+
{
|
|
2543
|
+
"kind": "text",
|
|
2544
|
+
"text": "Publisher details.\n\nReturned only when the publisher's identity is available."
|
|
2545
|
+
}
|
|
2546
|
+
]
|
|
2547
|
+
},
|
|
2548
|
+
"type": {
|
|
2549
|
+
"type": "reference",
|
|
2550
|
+
"target": 75,
|
|
2551
|
+
"name": "Publisher",
|
|
2552
|
+
"package": "@wix/realtime-common"
|
|
2925
2553
|
}
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2554
|
+
}
|
|
2555
|
+
],
|
|
2556
|
+
"groups": [
|
|
2557
|
+
{
|
|
2558
|
+
"title": "Properties",
|
|
2559
|
+
"children": [
|
|
2560
|
+
68,
|
|
2561
|
+
69
|
|
2562
|
+
]
|
|
2563
|
+
}
|
|
2564
|
+
]
|
|
2930
2565
|
},
|
|
2931
2566
|
{
|
|
2932
|
-
"id":
|
|
2933
|
-
"name": "
|
|
2567
|
+
"id": 75,
|
|
2568
|
+
"name": "Publisher",
|
|
2934
2569
|
"variant": "declaration",
|
|
2935
|
-
"kind":
|
|
2936
|
-
"flags": {
|
|
2937
|
-
"isOptional": true
|
|
2938
|
-
},
|
|
2570
|
+
"kind": 256,
|
|
2571
|
+
"flags": {},
|
|
2939
2572
|
"comment": {
|
|
2940
2573
|
"summary": [
|
|
2941
2574
|
{
|
|
2942
2575
|
"kind": "text",
|
|
2943
|
-
"text": "Publisher details
|
|
2576
|
+
"text": "Publisher details."
|
|
2944
2577
|
}
|
|
2945
2578
|
]
|
|
2946
2579
|
},
|
|
2947
|
-
"type": {
|
|
2948
|
-
"type": "reference",
|
|
2949
|
-
"target": 85,
|
|
2950
|
-
"name": "Publisher",
|
|
2951
|
-
"package": "@wix/realtime-common"
|
|
2952
|
-
}
|
|
2953
|
-
}
|
|
2954
|
-
],
|
|
2955
|
-
"groups": [
|
|
2956
|
-
{
|
|
2957
|
-
"title": "Properties",
|
|
2958
2580
|
"children": [
|
|
2959
|
-
|
|
2960
|
-
|
|
2581
|
+
{
|
|
2582
|
+
"id": 76,
|
|
2583
|
+
"name": "id",
|
|
2584
|
+
"variant": "declaration",
|
|
2585
|
+
"kind": 1024,
|
|
2586
|
+
"flags": {},
|
|
2587
|
+
"comment": {
|
|
2588
|
+
"summary": [
|
|
2589
|
+
{
|
|
2590
|
+
"kind": "text",
|
|
2591
|
+
"text": "Publisher ID."
|
|
2592
|
+
}
|
|
2593
|
+
]
|
|
2594
|
+
},
|
|
2595
|
+
"type": {
|
|
2596
|
+
"type": "intrinsic",
|
|
2597
|
+
"name": "string"
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
],
|
|
2601
|
+
"groups": [
|
|
2602
|
+
{
|
|
2603
|
+
"title": "Properties",
|
|
2604
|
+
"children": [
|
|
2605
|
+
76
|
|
2606
|
+
]
|
|
2607
|
+
}
|
|
2961
2608
|
]
|
|
2962
|
-
}
|
|
2963
|
-
]
|
|
2964
|
-
},
|
|
2965
|
-
{
|
|
2966
|
-
"id": 85,
|
|
2967
|
-
"name": "Publisher",
|
|
2968
|
-
"variant": "declaration",
|
|
2969
|
-
"kind": 256,
|
|
2970
|
-
"flags": {},
|
|
2971
|
-
"comment": {
|
|
2972
|
-
"summary": [
|
|
2973
|
-
{
|
|
2974
|
-
"kind": "text",
|
|
2975
|
-
"text": "Publisher details."
|
|
2976
|
-
}
|
|
2977
|
-
]
|
|
2978
|
-
},
|
|
2979
|
-
"children": [
|
|
2609
|
+
},
|
|
2980
2610
|
{
|
|
2981
|
-
"id":
|
|
2982
|
-
"name": "
|
|
2611
|
+
"id": 63,
|
|
2612
|
+
"name": "SubscribeChannel",
|
|
2983
2613
|
"variant": "declaration",
|
|
2984
|
-
"kind":
|
|
2614
|
+
"kind": 256,
|
|
2985
2615
|
"flags": {},
|
|
2986
2616
|
"comment": {
|
|
2987
2617
|
"summary": [
|
|
2988
2618
|
{
|
|
2989
2619
|
"kind": "text",
|
|
2990
|
-
"text": "
|
|
2620
|
+
"text": "Realtime broadcast subscribed channel. Subscribers listen to messages published to channels."
|
|
2991
2621
|
}
|
|
2992
2622
|
]
|
|
2993
2623
|
},
|
|
2994
|
-
"type": {
|
|
2995
|
-
"type": "intrinsic",
|
|
2996
|
-
"name": "string"
|
|
2997
|
-
}
|
|
2998
|
-
}
|
|
2999
|
-
],
|
|
3000
|
-
"groups": [
|
|
3001
|
-
{
|
|
3002
|
-
"title": "Properties",
|
|
3003
2624
|
"children": [
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
"name": "SubscribeChannel",
|
|
3012
|
-
"variant": "declaration",
|
|
3013
|
-
"kind": 256,
|
|
3014
|
-
"flags": {},
|
|
3015
|
-
"comment": {
|
|
3016
|
-
"summary": [
|
|
3017
|
-
{
|
|
3018
|
-
"kind": "text",
|
|
3019
|
-
"text": "Realtime broadcast subscribed channel. Subscribers listen to messages published to channels."
|
|
3020
|
-
}
|
|
3021
|
-
]
|
|
3022
|
-
},
|
|
3023
|
-
"children": [
|
|
3024
|
-
{
|
|
3025
|
-
"id": 74,
|
|
3026
|
-
"name": "appId",
|
|
3027
|
-
"variant": "declaration",
|
|
3028
|
-
"kind": 1024,
|
|
3029
|
-
"flags": {
|
|
3030
|
-
"isOptional": true
|
|
3031
|
-
},
|
|
3032
|
-
"comment": {
|
|
3033
|
-
"summary": [
|
|
3034
|
-
{
|
|
3035
|
-
"kind": "text",
|
|
3036
|
-
"text": "App ID of the channel owner.\n\nSet this to subscribe to a channel owned by a different app (cross-app subscription). When omitted, the channel is assumed to be owned by the caller's app.\n\nThe channel owner must implement the "
|
|
3037
|
-
},
|
|
3038
|
-
{
|
|
3039
|
-
"kind": "code",
|
|
3040
|
-
"text": "`REALTIME_PERMISSIONS_PROVIDER`"
|
|
3041
|
-
},
|
|
3042
|
-
{
|
|
3043
|
-
"kind": "text",
|
|
3044
|
-
"text": " SPI to authorize cross-app subscriptions; otherwise the subscription is denied.\n\nUse "
|
|
3045
|
-
},
|
|
3046
|
-
{
|
|
3047
|
-
"kind": "code",
|
|
3048
|
-
"text": "`WIX_APPS`"
|
|
2625
|
+
{
|
|
2626
|
+
"id": 66,
|
|
2627
|
+
"name": "appId",
|
|
2628
|
+
"variant": "declaration",
|
|
2629
|
+
"kind": 1024,
|
|
2630
|
+
"flags": {
|
|
2631
|
+
"isOptional": true
|
|
3049
2632
|
},
|
|
3050
|
-
{
|
|
3051
|
-
"
|
|
3052
|
-
|
|
2633
|
+
"comment": {
|
|
2634
|
+
"summary": [
|
|
2635
|
+
{
|
|
2636
|
+
"kind": "text",
|
|
2637
|
+
"text": "App ID of the channel owner.\n\nSet this to subscribe to a channel owned by a different app (cross-app subscription). When omitted, the channel is assumed to be owned by the caller's app.\n\nThe channel owner must implement the "
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"kind": "code",
|
|
2641
|
+
"text": "`REALTIME_PERMISSIONS_PROVIDER`"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"kind": "text",
|
|
2645
|
+
"text": " SPI to authorize cross-app subscriptions; otherwise the subscription is denied.\n\nUse "
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
"kind": "code",
|
|
2649
|
+
"text": "`WIX_APPS`"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"kind": "text",
|
|
2653
|
+
"text": " from "
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
"kind": "code",
|
|
2657
|
+
"text": "`@wix/essentials`"
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
"kind": "text",
|
|
2661
|
+
"text": " to reference well-known Wix app IDs."
|
|
2662
|
+
}
|
|
2663
|
+
]
|
|
3053
2664
|
},
|
|
3054
|
-
{
|
|
3055
|
-
"
|
|
3056
|
-
"
|
|
2665
|
+
"type": {
|
|
2666
|
+
"type": "intrinsic",
|
|
2667
|
+
"name": "string"
|
|
2668
|
+
}
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
"id": 64,
|
|
2672
|
+
"name": "name",
|
|
2673
|
+
"variant": "declaration",
|
|
2674
|
+
"kind": 1024,
|
|
2675
|
+
"flags": {},
|
|
2676
|
+
"comment": {
|
|
2677
|
+
"summary": [
|
|
2678
|
+
{
|
|
2679
|
+
"kind": "text",
|
|
2680
|
+
"text": "Channel name.\n\n> **Notes:**\n> - Supports only alphanumeric characters, hyphens, and underscores.\n> - The combined length of "
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
"kind": "code",
|
|
2684
|
+
"text": "`name`"
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"kind": "text",
|
|
2688
|
+
"text": " and "
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"kind": "code",
|
|
2692
|
+
"text": "`resourceId`"
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
"kind": "text",
|
|
2696
|
+
"text": " can't exceed 140 characters."
|
|
2697
|
+
}
|
|
2698
|
+
]
|
|
3057
2699
|
},
|
|
3058
|
-
{
|
|
3059
|
-
"
|
|
3060
|
-
"
|
|
2700
|
+
"type": {
|
|
2701
|
+
"type": "intrinsic",
|
|
2702
|
+
"name": "string"
|
|
3061
2703
|
}
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
"id": 75,
|
|
3071
|
-
"name": "name",
|
|
3072
|
-
"variant": "declaration",
|
|
3073
|
-
"kind": 1024,
|
|
3074
|
-
"flags": {},
|
|
3075
|
-
"comment": {
|
|
3076
|
-
"summary": [
|
|
3077
|
-
{
|
|
3078
|
-
"kind": "text",
|
|
3079
|
-
"text": "Channel name.\n\n> **Notes:**\n> - Supports only alphanumeric characters, hyphens, and underscores.\n> - The combined length of "
|
|
3080
|
-
},
|
|
3081
|
-
{
|
|
3082
|
-
"kind": "code",
|
|
3083
|
-
"text": "`name`"
|
|
3084
|
-
},
|
|
3085
|
-
{
|
|
3086
|
-
"kind": "text",
|
|
3087
|
-
"text": " and "
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"id": 65,
|
|
2707
|
+
"name": "resourceId",
|
|
2708
|
+
"variant": "declaration",
|
|
2709
|
+
"kind": 1024,
|
|
2710
|
+
"flags": {
|
|
2711
|
+
"isOptional": true
|
|
3088
2712
|
},
|
|
3089
|
-
{
|
|
3090
|
-
"
|
|
3091
|
-
|
|
2713
|
+
"comment": {
|
|
2714
|
+
"summary": [
|
|
2715
|
+
{
|
|
2716
|
+
"kind": "text",
|
|
2717
|
+
"text": "Resource ID.\n\nResources are independent sub-channels in a channel. A subscriber listening to a resource doesn't receive messages published to the parent channel, and vice versa."
|
|
2718
|
+
}
|
|
2719
|
+
]
|
|
3092
2720
|
},
|
|
3093
|
-
{
|
|
3094
|
-
"
|
|
3095
|
-
"
|
|
2721
|
+
"type": {
|
|
2722
|
+
"type": "intrinsic",
|
|
2723
|
+
"name": "string"
|
|
3096
2724
|
}
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
"
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
2725
|
+
}
|
|
2726
|
+
],
|
|
2727
|
+
"groups": [
|
|
2728
|
+
{
|
|
2729
|
+
"title": "Properties",
|
|
2730
|
+
"children": [
|
|
2731
|
+
66,
|
|
2732
|
+
64,
|
|
2733
|
+
65
|
|
2734
|
+
]
|
|
2735
|
+
}
|
|
2736
|
+
]
|
|
3108
2737
|
},
|
|
3109
2738
|
{
|
|
3110
|
-
"id":
|
|
3111
|
-
"name": "
|
|
2739
|
+
"id": 87,
|
|
2740
|
+
"name": "SubscriptionOptions",
|
|
3112
2741
|
"variant": "declaration",
|
|
3113
|
-
"kind":
|
|
3114
|
-
"flags": {
|
|
3115
|
-
"isOptional": true
|
|
3116
|
-
},
|
|
2742
|
+
"kind": 256,
|
|
2743
|
+
"flags": {},
|
|
3117
2744
|
"comment": {
|
|
3118
2745
|
"summary": [
|
|
3119
2746
|
{
|
|
3120
2747
|
"kind": "text",
|
|
3121
|
-
"text": "
|
|
2748
|
+
"text": "Subscription status handlers that run whenever a subscription is established, re-established, or fails."
|
|
3122
2749
|
}
|
|
3123
2750
|
]
|
|
3124
2751
|
},
|
|
3125
|
-
"type": {
|
|
3126
|
-
"type": "intrinsic",
|
|
3127
|
-
"name": "string"
|
|
3128
|
-
},
|
|
3129
|
-
"inheritedFrom": {
|
|
3130
|
-
"type": "reference",
|
|
3131
|
-
"target": -1,
|
|
3132
|
-
"name": "PublishChannel.resourceId"
|
|
3133
|
-
}
|
|
3134
|
-
}
|
|
3135
|
-
],
|
|
3136
|
-
"groups": [
|
|
3137
|
-
{
|
|
3138
|
-
"title": "Properties",
|
|
3139
2752
|
"children": [
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
{
|
|
3148
|
-
"type": "reference",
|
|
3149
|
-
"target": 72,
|
|
3150
|
-
"name": "PublishChannel",
|
|
3151
|
-
"package": "@wix/realtime-common"
|
|
3152
|
-
}
|
|
3153
|
-
]
|
|
3154
|
-
},
|
|
3155
|
-
{
|
|
3156
|
-
"id": 97,
|
|
3157
|
-
"name": "SubscriptionOptions",
|
|
3158
|
-
"variant": "declaration",
|
|
3159
|
-
"kind": 256,
|
|
3160
|
-
"flags": {},
|
|
3161
|
-
"comment": {
|
|
3162
|
-
"summary": [
|
|
3163
|
-
{
|
|
3164
|
-
"kind": "text",
|
|
3165
|
-
"text": "Subscription status handlers that run whenever a subscription is established, re-established, or fails."
|
|
3166
|
-
}
|
|
3167
|
-
]
|
|
3168
|
-
},
|
|
3169
|
-
"children": [
|
|
3170
|
-
{
|
|
3171
|
-
"id": 98,
|
|
3172
|
-
"name": "onSubscribed",
|
|
3173
|
-
"variant": "declaration",
|
|
3174
|
-
"kind": 1024,
|
|
3175
|
-
"flags": {
|
|
3176
|
-
"isOptional": true
|
|
3177
|
-
},
|
|
3178
|
-
"comment": {
|
|
3179
|
-
"summary": [
|
|
3180
|
-
{
|
|
3181
|
-
"kind": "text",
|
|
3182
|
-
"text": "Runs whenever the subscription is successfully established or re-established after a prior failure. To avoid unnecessary actions, make the handler idempotent.\n\nThe "
|
|
3183
|
-
},
|
|
3184
|
-
{
|
|
3185
|
-
"kind": "code",
|
|
3186
|
-
"text": "`isSynced`"
|
|
2753
|
+
{
|
|
2754
|
+
"id": 88,
|
|
2755
|
+
"name": "onSubscribed",
|
|
2756
|
+
"variant": "declaration",
|
|
2757
|
+
"kind": 1024,
|
|
2758
|
+
"flags": {
|
|
2759
|
+
"isOptional": true
|
|
3187
2760
|
},
|
|
3188
|
-
{
|
|
3189
|
-
"
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
2761
|
+
"comment": {
|
|
2762
|
+
"summary": [
|
|
2763
|
+
{
|
|
2764
|
+
"kind": "text",
|
|
2765
|
+
"text": "Runs whenever the subscription is successfully established or re-established after a prior failure. To avoid unnecessary actions, make the handler idempotent.\n\nThe "
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"kind": "code",
|
|
2769
|
+
"text": "`isSynced`"
|
|
2770
|
+
},
|
|
3198
2771
|
{
|
|
3199
2772
|
"kind": "text",
|
|
3200
|
-
"text": "
|
|
2773
|
+
"text": " parameter indicates whether missed messages were restored."
|
|
2774
|
+
}
|
|
2775
|
+
],
|
|
2776
|
+
"blockTags": [
|
|
2777
|
+
{
|
|
2778
|
+
"tag": "@param",
|
|
2779
|
+
"name": "subscriptionId",
|
|
2780
|
+
"content": [
|
|
2781
|
+
{
|
|
2782
|
+
"kind": "text",
|
|
2783
|
+
"text": "ID of the subscription."
|
|
2784
|
+
}
|
|
2785
|
+
]
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"tag": "@param",
|
|
2789
|
+
"name": "isSynced",
|
|
2790
|
+
"content": [
|
|
2791
|
+
{
|
|
2792
|
+
"kind": "text",
|
|
2793
|
+
"text": "Whether the server successfully restored missed messages since the last disconnection.\n\nThe value of this parameter depends on the scenario:\n\n- When subscribing for the first time, "
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"kind": "code",
|
|
2797
|
+
"text": "`isSynced`"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"kind": "text",
|
|
2801
|
+
"text": " is "
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"kind": "code",
|
|
2805
|
+
"text": "`false`"
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
"kind": "text",
|
|
2809
|
+
"text": ", as there are no prior messages to restore. In this scenario, load your initial state independently.\n\n- When re-subscribing and all messages were successfully restored, "
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
"kind": "code",
|
|
2813
|
+
"text": "`isSynced`"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"kind": "text",
|
|
2817
|
+
"text": " is "
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"kind": "code",
|
|
2821
|
+
"text": "`true`"
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"kind": "text",
|
|
2825
|
+
"text": ". No further action is necessary.\n\n- When re-subscribing but some messages weren't restored, "
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
"kind": "code",
|
|
2829
|
+
"text": "`isSynced`"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
"kind": "text",
|
|
2833
|
+
"text": " is "
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
"kind": "code",
|
|
2837
|
+
"text": "`false`"
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
"kind": "text",
|
|
2841
|
+
"text": ". The server is unable to restore all missed messages. In this scenario, you need to resync your state independently.\n\n<!-- TODO: Document server-side buffer limits for message replay. -->"
|
|
2842
|
+
}
|
|
2843
|
+
]
|
|
3201
2844
|
}
|
|
3202
2845
|
]
|
|
3203
2846
|
},
|
|
3204
|
-
{
|
|
3205
|
-
"
|
|
3206
|
-
"
|
|
3207
|
-
"
|
|
2847
|
+
"type": {
|
|
2848
|
+
"type": "reference",
|
|
2849
|
+
"target": 77,
|
|
2850
|
+
"name": "SubscriptionHandler",
|
|
2851
|
+
"package": "@wix/realtime-common"
|
|
2852
|
+
}
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
"id": 89,
|
|
2856
|
+
"name": "onSubscriptionError",
|
|
2857
|
+
"variant": "declaration",
|
|
2858
|
+
"kind": 1024,
|
|
2859
|
+
"flags": {
|
|
2860
|
+
"isOptional": true
|
|
2861
|
+
},
|
|
2862
|
+
"comment": {
|
|
2863
|
+
"summary": [
|
|
3208
2864
|
{
|
|
3209
2865
|
"kind": "text",
|
|
3210
|
-
"text": "
|
|
2866
|
+
"text": "Runs when a subscription error occurs. It can run multiple times in a single session.\n\nThis handler runs in the following scenarios:\n\n- **Subscription failed**: The subscription request was rejected, for example, due to an authorization failure. This error is non-recoverable, so the subscription isn't automatically re-attempted.\n\n- **Subscription disconnected**: The connection between the subscriber and publisher was closed. Check "
|
|
3211
2867
|
},
|
|
3212
2868
|
{
|
|
3213
2869
|
"kind": "code",
|
|
3214
|
-
"text": "`
|
|
2870
|
+
"text": "`error.recoverable`"
|
|
3215
2871
|
},
|
|
3216
2872
|
{
|
|
3217
2873
|
"kind": "text",
|
|
3218
|
-
"text": "
|
|
2874
|
+
"text": ":\n - When "
|
|
3219
2875
|
},
|
|
3220
2876
|
{
|
|
3221
2877
|
"kind": "code",
|
|
3222
|
-
"text": "`
|
|
2878
|
+
"text": "`true`"
|
|
3223
2879
|
},
|
|
3224
2880
|
{
|
|
3225
2881
|
"kind": "text",
|
|
3226
|
-
"text": ",
|
|
2882
|
+
"text": ", the error is recoverable. The subscription is automatically re-attempted. No further action necessary.\n - When "
|
|
3227
2883
|
},
|
|
3228
2884
|
{
|
|
3229
2885
|
"kind": "code",
|
|
3230
|
-
"text": "`
|
|
2886
|
+
"text": "`false`"
|
|
3231
2887
|
},
|
|
3232
2888
|
{
|
|
3233
2889
|
"kind": "text",
|
|
3234
|
-
"text": "
|
|
2890
|
+
"text": ", the error isn't recoverable. Establish the subscription again.\n\n- **Connection error**: Runs on each failed subscription attempt. The "
|
|
3235
2891
|
},
|
|
3236
2892
|
{
|
|
3237
2893
|
"kind": "code",
|
|
3238
|
-
"text": "`
|
|
2894
|
+
"text": "`error.recoverable`"
|
|
3239
2895
|
},
|
|
3240
2896
|
{
|
|
3241
2897
|
"kind": "text",
|
|
3242
|
-
"text": "
|
|
2898
|
+
"text": " flag is always "
|
|
3243
2899
|
},
|
|
3244
2900
|
{
|
|
3245
2901
|
"kind": "code",
|
|
3246
|
-
"text": "`
|
|
2902
|
+
"text": "`true`"
|
|
3247
2903
|
},
|
|
3248
2904
|
{
|
|
3249
2905
|
"kind": "text",
|
|
3250
|
-
"text": " is "
|
|
3251
|
-
}
|
|
2906
|
+
"text": ", as the subscription is re-established."
|
|
2907
|
+
}
|
|
2908
|
+
],
|
|
2909
|
+
"blockTags": [
|
|
3252
2910
|
{
|
|
3253
|
-
"
|
|
3254
|
-
"
|
|
2911
|
+
"tag": "@param",
|
|
2912
|
+
"name": "error",
|
|
2913
|
+
"content": [
|
|
2914
|
+
{
|
|
2915
|
+
"kind": "text",
|
|
2916
|
+
"text": "Error that occurred. Check "
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"kind": "code",
|
|
2920
|
+
"text": "`errorCode`"
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
"kind": "text",
|
|
2924
|
+
"text": " and "
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"kind": "code",
|
|
2928
|
+
"text": "`recoverable`"
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"kind": "text",
|
|
2932
|
+
"text": " to determine the type and whether manual action is required."
|
|
2933
|
+
}
|
|
2934
|
+
]
|
|
3255
2935
|
},
|
|
3256
2936
|
{
|
|
3257
|
-
"
|
|
3258
|
-
"
|
|
2937
|
+
"tag": "@param",
|
|
2938
|
+
"name": "subscriptionId",
|
|
2939
|
+
"content": [
|
|
2940
|
+
{
|
|
2941
|
+
"kind": "text",
|
|
2942
|
+
"text": "ID of the subscription that generated the error."
|
|
2943
|
+
}
|
|
2944
|
+
]
|
|
3259
2945
|
}
|
|
3260
2946
|
]
|
|
2947
|
+
},
|
|
2948
|
+
"type": {
|
|
2949
|
+
"type": "reference",
|
|
2950
|
+
"target": 82,
|
|
2951
|
+
"name": "SubscriptionErrorHandler",
|
|
2952
|
+
"package": "@wix/realtime-common"
|
|
3261
2953
|
}
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
"
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
2954
|
+
}
|
|
2955
|
+
],
|
|
2956
|
+
"groups": [
|
|
2957
|
+
{
|
|
2958
|
+
"title": "Properties",
|
|
2959
|
+
"children": [
|
|
2960
|
+
88,
|
|
2961
|
+
89
|
|
2962
|
+
]
|
|
2963
|
+
}
|
|
2964
|
+
]
|
|
3270
2965
|
},
|
|
3271
2966
|
{
|
|
3272
|
-
"id":
|
|
3273
|
-
"name": "
|
|
2967
|
+
"id": 90,
|
|
2968
|
+
"name": "UnsubscribeOptions",
|
|
3274
2969
|
"variant": "declaration",
|
|
3275
|
-
"kind":
|
|
3276
|
-
"flags": {
|
|
3277
|
-
"isOptional": true
|
|
3278
|
-
},
|
|
2970
|
+
"kind": 256,
|
|
2971
|
+
"flags": {},
|
|
3279
2972
|
"comment": {
|
|
3280
2973
|
"summary": [
|
|
3281
2974
|
{
|
|
3282
2975
|
"kind": "text",
|
|
3283
|
-
"text": "
|
|
3284
|
-
},
|
|
3285
|
-
{
|
|
3286
|
-
"kind": "code",
|
|
3287
|
-
"text": "`error.recoverable`"
|
|
3288
|
-
},
|
|
3289
|
-
{
|
|
3290
|
-
"kind": "text",
|
|
3291
|
-
"text": ":\n - When "
|
|
2976
|
+
"text": "Unsubscribe options. Specify "
|
|
3292
2977
|
},
|
|
3293
2978
|
{
|
|
3294
2979
|
"kind": "code",
|
|
3295
|
-
"text": "`
|
|
2980
|
+
"text": "`channel`"
|
|
3296
2981
|
},
|
|
3297
2982
|
{
|
|
3298
2983
|
"kind": "text",
|
|
3299
|
-
"text": ",
|
|
2984
|
+
"text": ", "
|
|
3300
2985
|
},
|
|
3301
2986
|
{
|
|
3302
2987
|
"kind": "code",
|
|
3303
|
-
"text": "`
|
|
2988
|
+
"text": "`subscriptionId`"
|
|
3304
2989
|
},
|
|
3305
2990
|
{
|
|
3306
2991
|
"kind": "text",
|
|
3307
|
-
"text": ",
|
|
2992
|
+
"text": ", or both:\n\n- To remove all subscriptions from a channel, specify the channel in "
|
|
3308
2993
|
},
|
|
3309
2994
|
{
|
|
3310
2995
|
"kind": "code",
|
|
3311
|
-
"text": "`
|
|
2996
|
+
"text": "`channel.name`"
|
|
3312
2997
|
},
|
|
3313
2998
|
{
|
|
3314
2999
|
"kind": "text",
|
|
3315
|
-
"text": "
|
|
3000
|
+
"text": ".\n- To remove a single subscription, specify the "
|
|
3316
3001
|
},
|
|
3317
3002
|
{
|
|
3318
3003
|
"kind": "code",
|
|
3319
|
-
"text": "`
|
|
3004
|
+
"text": "`subscriptionId`"
|
|
3320
3005
|
},
|
|
3321
3006
|
{
|
|
3322
3007
|
"kind": "text",
|
|
3323
|
-
"text": ",
|
|
3008
|
+
"text": ".\n- To remove a single subscription with channel verification, specify both. This removes the specified subscription only if it listens to the specified channel."
|
|
3324
3009
|
}
|
|
3325
|
-
]
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
},
|
|
3339
|
-
{
|
|
3340
|
-
"kind": "text",
|
|
3341
|
-
"text": " and "
|
|
3342
|
-
},
|
|
3343
|
-
{
|
|
3344
|
-
"kind": "code",
|
|
3345
|
-
"text": "`recoverable`"
|
|
3346
|
-
},
|
|
3010
|
+
]
|
|
3011
|
+
},
|
|
3012
|
+
"children": [
|
|
3013
|
+
{
|
|
3014
|
+
"id": 91,
|
|
3015
|
+
"name": "channel",
|
|
3016
|
+
"variant": "declaration",
|
|
3017
|
+
"kind": 1024,
|
|
3018
|
+
"flags": {
|
|
3019
|
+
"isOptional": true
|
|
3020
|
+
},
|
|
3021
|
+
"comment": {
|
|
3022
|
+
"summary": [
|
|
3347
3023
|
{
|
|
3348
3024
|
"kind": "text",
|
|
3349
|
-
"text": " to
|
|
3025
|
+
"text": "Channel or resource to unsubscribe from.\n\nWhen empty, the subscription is removed without verifying that it belongs to the channel."
|
|
3350
3026
|
}
|
|
3351
3027
|
]
|
|
3352
3028
|
},
|
|
3353
|
-
{
|
|
3354
|
-
"
|
|
3355
|
-
"
|
|
3356
|
-
"
|
|
3029
|
+
"type": {
|
|
3030
|
+
"type": "reference",
|
|
3031
|
+
"target": 63,
|
|
3032
|
+
"name": "SubscribeChannel",
|
|
3033
|
+
"package": "@wix/realtime-common"
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"id": 92,
|
|
3038
|
+
"name": "subscriptionId",
|
|
3039
|
+
"variant": "declaration",
|
|
3040
|
+
"kind": 1024,
|
|
3041
|
+
"flags": {
|
|
3042
|
+
"isOptional": true
|
|
3043
|
+
},
|
|
3044
|
+
"comment": {
|
|
3045
|
+
"summary": [
|
|
3357
3046
|
{
|
|
3358
3047
|
"kind": "text",
|
|
3359
|
-
"text": "ID of the subscription
|
|
3048
|
+
"text": "ID of the subscription to remove.\n\nWhen empty, all subscriptions to the specified channel are removed."
|
|
3360
3049
|
}
|
|
3361
3050
|
]
|
|
3051
|
+
},
|
|
3052
|
+
"type": {
|
|
3053
|
+
"type": "intrinsic",
|
|
3054
|
+
"name": "string"
|
|
3362
3055
|
}
|
|
3363
|
-
|
|
3364
|
-
|
|
3056
|
+
}
|
|
3057
|
+
],
|
|
3058
|
+
"groups": [
|
|
3059
|
+
{
|
|
3060
|
+
"title": "Properties",
|
|
3061
|
+
"children": [
|
|
3062
|
+
91,
|
|
3063
|
+
92
|
|
3064
|
+
]
|
|
3065
|
+
}
|
|
3066
|
+
]
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"id": 70,
|
|
3070
|
+
"name": "MessageHandler",
|
|
3071
|
+
"variant": "declaration",
|
|
3072
|
+
"kind": 4194304,
|
|
3073
|
+
"flags": {},
|
|
3365
3074
|
"type": {
|
|
3366
|
-
"type": "
|
|
3367
|
-
"
|
|
3368
|
-
|
|
3369
|
-
|
|
3075
|
+
"type": "reflection",
|
|
3076
|
+
"declaration": {
|
|
3077
|
+
"id": 71,
|
|
3078
|
+
"name": "__type",
|
|
3079
|
+
"variant": "declaration",
|
|
3080
|
+
"kind": 65536,
|
|
3081
|
+
"flags": {},
|
|
3082
|
+
"signatures": [
|
|
3083
|
+
{
|
|
3084
|
+
"id": 72,
|
|
3085
|
+
"name": "__type",
|
|
3086
|
+
"variant": "signature",
|
|
3087
|
+
"kind": 4096,
|
|
3088
|
+
"flags": {},
|
|
3089
|
+
"comment": {
|
|
3090
|
+
"summary": [
|
|
3091
|
+
{
|
|
3092
|
+
"kind": "text",
|
|
3093
|
+
"text": "Runs when a message is published to a channel or resource the subscriber listens to."
|
|
3094
|
+
}
|
|
3095
|
+
]
|
|
3096
|
+
},
|
|
3097
|
+
"parameters": [
|
|
3098
|
+
{
|
|
3099
|
+
"id": 73,
|
|
3100
|
+
"name": "message",
|
|
3101
|
+
"variant": "param",
|
|
3102
|
+
"kind": 32768,
|
|
3103
|
+
"flags": {},
|
|
3104
|
+
"comment": {
|
|
3105
|
+
"summary": [
|
|
3106
|
+
{
|
|
3107
|
+
"kind": "text",
|
|
3108
|
+
"text": "Published message."
|
|
3109
|
+
}
|
|
3110
|
+
]
|
|
3111
|
+
},
|
|
3112
|
+
"type": {
|
|
3113
|
+
"type": "reference",
|
|
3114
|
+
"target": 67,
|
|
3115
|
+
"name": "Message",
|
|
3116
|
+
"package": "@wix/realtime-common"
|
|
3117
|
+
}
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
"id": 74,
|
|
3121
|
+
"name": "channel",
|
|
3122
|
+
"variant": "param",
|
|
3123
|
+
"kind": 32768,
|
|
3124
|
+
"flags": {},
|
|
3125
|
+
"comment": {
|
|
3126
|
+
"summary": [
|
|
3127
|
+
{
|
|
3128
|
+
"kind": "text",
|
|
3129
|
+
"text": "Channel the message was published to."
|
|
3130
|
+
}
|
|
3131
|
+
]
|
|
3132
|
+
},
|
|
3133
|
+
"type": {
|
|
3134
|
+
"type": "reference",
|
|
3135
|
+
"target": 63,
|
|
3136
|
+
"name": "SubscribeChannel",
|
|
3137
|
+
"package": "@wix/realtime-common"
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
],
|
|
3141
|
+
"type": {
|
|
3142
|
+
"type": "intrinsic",
|
|
3143
|
+
"name": "void"
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
]
|
|
3147
|
+
}
|
|
3370
3148
|
}
|
|
3371
|
-
}
|
|
3372
|
-
],
|
|
3373
|
-
"groups": [
|
|
3149
|
+
},
|
|
3374
3150
|
{
|
|
3375
|
-
"
|
|
3376
|
-
"
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3151
|
+
"id": 82,
|
|
3152
|
+
"name": "SubscriptionErrorHandler",
|
|
3153
|
+
"variant": "declaration",
|
|
3154
|
+
"kind": 4194304,
|
|
3155
|
+
"flags": {},
|
|
3156
|
+
"type": {
|
|
3157
|
+
"type": "reflection",
|
|
3158
|
+
"declaration": {
|
|
3159
|
+
"id": 83,
|
|
3160
|
+
"name": "__type",
|
|
3161
|
+
"variant": "declaration",
|
|
3162
|
+
"kind": 65536,
|
|
3163
|
+
"flags": {},
|
|
3164
|
+
"signatures": [
|
|
3165
|
+
{
|
|
3166
|
+
"id": 84,
|
|
3167
|
+
"name": "__type",
|
|
3168
|
+
"variant": "signature",
|
|
3169
|
+
"kind": 4096,
|
|
3170
|
+
"flags": {},
|
|
3171
|
+
"comment": {
|
|
3172
|
+
"summary": [
|
|
3173
|
+
{
|
|
3174
|
+
"kind": "text",
|
|
3175
|
+
"text": "Runs when a subscription error occurs."
|
|
3176
|
+
}
|
|
3177
|
+
]
|
|
3178
|
+
},
|
|
3179
|
+
"parameters": [
|
|
3180
|
+
{
|
|
3181
|
+
"id": 85,
|
|
3182
|
+
"name": "error",
|
|
3183
|
+
"variant": "param",
|
|
3184
|
+
"kind": 32768,
|
|
3185
|
+
"flags": {},
|
|
3186
|
+
"comment": {
|
|
3187
|
+
"summary": [
|
|
3188
|
+
{
|
|
3189
|
+
"kind": "text",
|
|
3190
|
+
"text": "Error that occurred."
|
|
3191
|
+
}
|
|
3192
|
+
]
|
|
3193
|
+
},
|
|
3194
|
+
"type": {
|
|
3195
|
+
"type": "reference",
|
|
3196
|
+
"target": 93,
|
|
3197
|
+
"name": "RealtimeError",
|
|
3198
|
+
"package": "@wix/realtime-common"
|
|
3199
|
+
}
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
"id": 86,
|
|
3203
|
+
"name": "subscriptionId",
|
|
3204
|
+
"variant": "param",
|
|
3205
|
+
"kind": 32768,
|
|
3206
|
+
"flags": {},
|
|
3207
|
+
"comment": {
|
|
3208
|
+
"summary": [
|
|
3209
|
+
{
|
|
3210
|
+
"kind": "text",
|
|
3211
|
+
"text": "ID of the subscription that generated the error."
|
|
3212
|
+
}
|
|
3213
|
+
]
|
|
3214
|
+
},
|
|
3215
|
+
"type": {
|
|
3216
|
+
"type": "intrinsic",
|
|
3217
|
+
"name": "string"
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
],
|
|
3221
|
+
"type": {
|
|
3222
|
+
"type": "intrinsic",
|
|
3223
|
+
"name": "void"
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
]
|
|
3227
|
+
}
|
|
3426
3228
|
}
|
|
3427
|
-
|
|
3428
|
-
},
|
|
3429
|
-
"children": [
|
|
3229
|
+
},
|
|
3430
3230
|
{
|
|
3431
|
-
"id":
|
|
3432
|
-
"name": "
|
|
3231
|
+
"id": 77,
|
|
3232
|
+
"name": "SubscriptionHandler",
|
|
3433
3233
|
"variant": "declaration",
|
|
3434
|
-
"kind":
|
|
3435
|
-
"flags": {
|
|
3436
|
-
"isOptional": true
|
|
3437
|
-
},
|
|
3438
|
-
"comment": {
|
|
3439
|
-
"summary": [
|
|
3440
|
-
{
|
|
3441
|
-
"kind": "text",
|
|
3442
|
-
"text": "Channel or resource to unsubscribe from.\n\nWhen empty, the subscription is removed without verifying that it belongs to the channel."
|
|
3443
|
-
}
|
|
3444
|
-
]
|
|
3445
|
-
},
|
|
3234
|
+
"kind": 4194304,
|
|
3235
|
+
"flags": {},
|
|
3446
3236
|
"type": {
|
|
3447
|
-
"type": "
|
|
3448
|
-
"
|
|
3449
|
-
|
|
3450
|
-
|
|
3237
|
+
"type": "reflection",
|
|
3238
|
+
"declaration": {
|
|
3239
|
+
"id": 78,
|
|
3240
|
+
"name": "__type",
|
|
3241
|
+
"variant": "declaration",
|
|
3242
|
+
"kind": 65536,
|
|
3243
|
+
"flags": {},
|
|
3244
|
+
"signatures": [
|
|
3245
|
+
{
|
|
3246
|
+
"id": 79,
|
|
3247
|
+
"name": "__type",
|
|
3248
|
+
"variant": "signature",
|
|
3249
|
+
"kind": 4096,
|
|
3250
|
+
"flags": {},
|
|
3251
|
+
"comment": {
|
|
3252
|
+
"summary": [
|
|
3253
|
+
{
|
|
3254
|
+
"kind": "text",
|
|
3255
|
+
"text": "Runs when a subscription is successfully established or re-established.\n\nWhen a subscription fails and is re-established, the subscriber might not receive all messages published during the failure. The "
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"kind": "code",
|
|
3259
|
+
"text": "`isSynced`"
|
|
3260
|
+
},
|
|
3261
|
+
{
|
|
3262
|
+
"kind": "text",
|
|
3263
|
+
"text": " flag indicates whether all missed messages were successfully delivered.\n\n<!-- TODO: Document server-side buffer limits for message replay. -->"
|
|
3264
|
+
}
|
|
3265
|
+
]
|
|
3266
|
+
},
|
|
3267
|
+
"parameters": [
|
|
3268
|
+
{
|
|
3269
|
+
"id": 80,
|
|
3270
|
+
"name": "subscriptionId",
|
|
3271
|
+
"variant": "param",
|
|
3272
|
+
"kind": 32768,
|
|
3273
|
+
"flags": {},
|
|
3274
|
+
"comment": {
|
|
3275
|
+
"summary": [
|
|
3276
|
+
{
|
|
3277
|
+
"kind": "text",
|
|
3278
|
+
"text": "Subscription ID."
|
|
3279
|
+
}
|
|
3280
|
+
]
|
|
3281
|
+
},
|
|
3282
|
+
"type": {
|
|
3283
|
+
"type": "intrinsic",
|
|
3284
|
+
"name": "string"
|
|
3285
|
+
}
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
"id": 81,
|
|
3289
|
+
"name": "isSynced",
|
|
3290
|
+
"variant": "param",
|
|
3291
|
+
"kind": 32768,
|
|
3292
|
+
"flags": {},
|
|
3293
|
+
"comment": {
|
|
3294
|
+
"summary": [
|
|
3295
|
+
{
|
|
3296
|
+
"kind": "text",
|
|
3297
|
+
"text": "Whether the message history was fully restored."
|
|
3298
|
+
}
|
|
3299
|
+
]
|
|
3300
|
+
},
|
|
3301
|
+
"type": {
|
|
3302
|
+
"type": "intrinsic",
|
|
3303
|
+
"name": "boolean"
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
],
|
|
3307
|
+
"type": {
|
|
3308
|
+
"type": "intrinsic",
|
|
3309
|
+
"name": "void"
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
]
|
|
3313
|
+
}
|
|
3451
3314
|
}
|
|
3452
3315
|
},
|
|
3453
3316
|
{
|
|
3454
|
-
"id":
|
|
3455
|
-
"name": "
|
|
3456
|
-
"variant": "declaration",
|
|
3457
|
-
"kind": 1024,
|
|
3458
|
-
"flags": {
|
|
3459
|
-
"isOptional": true
|
|
3460
|
-
},
|
|
3461
|
-
"comment": {
|
|
3462
|
-
"summary": [
|
|
3463
|
-
{
|
|
3464
|
-
"kind": "text",
|
|
3465
|
-
"text": "ID of the subscription to remove.\n\nWhen empty, all subscriptions to the specified channel are removed."
|
|
3466
|
-
}
|
|
3467
|
-
]
|
|
3468
|
-
},
|
|
3469
|
-
"type": {
|
|
3470
|
-
"type": "intrinsic",
|
|
3471
|
-
"name": "string"
|
|
3472
|
-
}
|
|
3473
|
-
}
|
|
3474
|
-
],
|
|
3475
|
-
"groups": [
|
|
3476
|
-
{
|
|
3477
|
-
"title": "Properties",
|
|
3478
|
-
"children": [
|
|
3479
|
-
101,
|
|
3480
|
-
102
|
|
3481
|
-
]
|
|
3482
|
-
}
|
|
3483
|
-
]
|
|
3484
|
-
},
|
|
3485
|
-
{
|
|
3486
|
-
"id": 80,
|
|
3487
|
-
"name": "MessageHandler",
|
|
3488
|
-
"variant": "declaration",
|
|
3489
|
-
"kind": 4194304,
|
|
3490
|
-
"flags": {},
|
|
3491
|
-
"type": {
|
|
3492
|
-
"type": "reflection",
|
|
3493
|
-
"declaration": {
|
|
3494
|
-
"id": 81,
|
|
3495
|
-
"name": "__type",
|
|
3317
|
+
"id": 112,
|
|
3318
|
+
"name": "subscribe",
|
|
3496
3319
|
"variant": "declaration",
|
|
3497
|
-
"kind":
|
|
3320
|
+
"kind": 64,
|
|
3498
3321
|
"flags": {},
|
|
3499
3322
|
"signatures": [
|
|
3500
3323
|
{
|
|
3501
|
-
"id":
|
|
3502
|
-
"name": "
|
|
3324
|
+
"id": 113,
|
|
3325
|
+
"name": "subscribe",
|
|
3503
3326
|
"variant": "signature",
|
|
3504
3327
|
"kind": 4096,
|
|
3505
3328
|
"flags": {},
|
|
@@ -3507,14 +3330,76 @@
|
|
|
3507
3330
|
"summary": [
|
|
3508
3331
|
{
|
|
3509
3332
|
"kind": "text",
|
|
3510
|
-
"text": "
|
|
3333
|
+
"text": "Subscribes to a channel or resource.\n\nThe method attempts to establish a subscription to the specified channel or resource. It returns the subscription ID immediately while the subscription is attempted in the background.\n\nUse the "
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"kind": "code",
|
|
3337
|
+
"text": "`options`"
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"kind": "text",
|
|
3341
|
+
"text": " parameter to register handlers that run whenever the subscription succeeds or generates an error. For some errors, the subscription is re-attempted automatically. The "
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"kind": "code",
|
|
3345
|
+
"text": "`onSubscribed()`"
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
"kind": "text",
|
|
3349
|
+
"text": " handler runs on every successful re-subscription.\n\nLearn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle)."
|
|
3350
|
+
}
|
|
3351
|
+
],
|
|
3352
|
+
"blockTags": [
|
|
3353
|
+
{
|
|
3354
|
+
"tag": "@example",
|
|
3355
|
+
"content": [
|
|
3356
|
+
{
|
|
3357
|
+
"kind": "text",
|
|
3358
|
+
"text": "Subscribe to a channel\n"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"kind": "code",
|
|
3362
|
+
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nconst subscriptionId = subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n);\n```"
|
|
3363
|
+
}
|
|
3364
|
+
]
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"tag": "@example",
|
|
3368
|
+
"content": [
|
|
3369
|
+
{
|
|
3370
|
+
"kind": "text",
|
|
3371
|
+
"text": "Subscribe to a channel: Self-hosted\n"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"kind": "code",
|
|
3375
|
+
"text": "```ts\nimport { createClient } from '@wix/sdk';\nimport { subscriber } from '@wix/realtime';\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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\nconst subscriptionId = client.subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n {\n onSubscribed: (id, isSynced) => console.log('Subscribed', id),\n onSubscriptionError: (error, id) => console.error('Error', error),\n },\n);\n```"
|
|
3376
|
+
}
|
|
3377
|
+
]
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
"tag": "@requiredField",
|
|
3381
|
+
"content": [
|
|
3382
|
+
{
|
|
3383
|
+
"kind": "text",
|
|
3384
|
+
"text": "channel"
|
|
3385
|
+
}
|
|
3386
|
+
]
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
"tag": "@requiredField",
|
|
3390
|
+
"content": [
|
|
3391
|
+
{
|
|
3392
|
+
"kind": "text",
|
|
3393
|
+
"text": "messageHandler"
|
|
3394
|
+
}
|
|
3395
|
+
]
|
|
3511
3396
|
}
|
|
3512
3397
|
]
|
|
3513
3398
|
},
|
|
3514
3399
|
"parameters": [
|
|
3515
3400
|
{
|
|
3516
|
-
"id":
|
|
3517
|
-
"name": "
|
|
3401
|
+
"id": 114,
|
|
3402
|
+
"name": "channel",
|
|
3518
3403
|
"variant": "param",
|
|
3519
3404
|
"kind": 32768,
|
|
3520
3405
|
"flags": {},
|
|
@@ -3522,20 +3407,20 @@
|
|
|
3522
3407
|
"summary": [
|
|
3523
3408
|
{
|
|
3524
3409
|
"kind": "text",
|
|
3525
|
-
"text": "
|
|
3410
|
+
"text": "Channel and resource to subscribe to."
|
|
3526
3411
|
}
|
|
3527
3412
|
]
|
|
3528
3413
|
},
|
|
3529
3414
|
"type": {
|
|
3530
3415
|
"type": "reference",
|
|
3531
|
-
"target":
|
|
3532
|
-
"name": "
|
|
3416
|
+
"target": 63,
|
|
3417
|
+
"name": "SubscribeChannel",
|
|
3533
3418
|
"package": "@wix/realtime-common"
|
|
3534
3419
|
}
|
|
3535
3420
|
},
|
|
3536
3421
|
{
|
|
3537
|
-
"id":
|
|
3538
|
-
"name": "
|
|
3422
|
+
"id": 115,
|
|
3423
|
+
"name": "messageHandler",
|
|
3539
3424
|
"variant": "param",
|
|
3540
3425
|
"kind": 32768,
|
|
3541
3426
|
"flags": {},
|
|
@@ -3543,73 +3428,162 @@
|
|
|
3543
3428
|
"summary": [
|
|
3544
3429
|
{
|
|
3545
3430
|
"kind": "text",
|
|
3546
|
-
"text": "
|
|
3431
|
+
"text": "Handler that runs whenever a message is published to the channel or resource."
|
|
3547
3432
|
}
|
|
3548
3433
|
]
|
|
3549
3434
|
},
|
|
3550
3435
|
"type": {
|
|
3551
3436
|
"type": "reference",
|
|
3552
|
-
"target":
|
|
3553
|
-
"name": "
|
|
3437
|
+
"target": 70,
|
|
3438
|
+
"name": "MessageHandler",
|
|
3439
|
+
"package": "@wix/realtime-common"
|
|
3440
|
+
}
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"id": 116,
|
|
3444
|
+
"name": "options",
|
|
3445
|
+
"variant": "param",
|
|
3446
|
+
"kind": 32768,
|
|
3447
|
+
"flags": {
|
|
3448
|
+
"isOptional": true
|
|
3449
|
+
},
|
|
3450
|
+
"comment": {
|
|
3451
|
+
"summary": [
|
|
3452
|
+
{
|
|
3453
|
+
"kind": "text",
|
|
3454
|
+
"text": "[Lifecycle handlers](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle) for subscription events."
|
|
3455
|
+
}
|
|
3456
|
+
]
|
|
3457
|
+
},
|
|
3458
|
+
"type": {
|
|
3459
|
+
"type": "reference",
|
|
3460
|
+
"target": 87,
|
|
3461
|
+
"name": "SubscriptionOptions",
|
|
3554
3462
|
"package": "@wix/realtime-common"
|
|
3555
3463
|
}
|
|
3556
3464
|
}
|
|
3557
3465
|
],
|
|
3558
3466
|
"type": {
|
|
3559
3467
|
"type": "intrinsic",
|
|
3560
|
-
"name": "
|
|
3468
|
+
"name": "string"
|
|
3469
|
+
}
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
"id": 117,
|
|
3473
|
+
"name": "subscribe",
|
|
3474
|
+
"variant": "signature",
|
|
3475
|
+
"kind": 4096,
|
|
3476
|
+
"flags": {},
|
|
3477
|
+
"comment": {
|
|
3478
|
+
"summary": [
|
|
3479
|
+
{
|
|
3480
|
+
"kind": "text",
|
|
3481
|
+
"text": "Subscribes to a channel or resource.\n\nThe method attempts to establish a subscription to the specified channel or resource. It returns the subscription ID immediately while the subscription is attempted in the background.\n\nUse the "
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
"kind": "code",
|
|
3485
|
+
"text": "`options`"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
"kind": "text",
|
|
3489
|
+
"text": " parameter to register handlers that run whenever the subscription succeeds or generates an error. For some errors, the subscription is re-attempted automatically. The "
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"kind": "code",
|
|
3493
|
+
"text": "`onSubscribed()`"
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
"kind": "text",
|
|
3497
|
+
"text": " handler runs on every successful re-subscription.\n\nLearn more about the [subscription lifecycle](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/subscriber/introduction#core-modules_realtime_realtime_subscriber_subscription-lifecycle)."
|
|
3498
|
+
}
|
|
3499
|
+
],
|
|
3500
|
+
"blockTags": [
|
|
3501
|
+
{
|
|
3502
|
+
"tag": "@example",
|
|
3503
|
+
"content": [
|
|
3504
|
+
{
|
|
3505
|
+
"kind": "text",
|
|
3506
|
+
"text": "Subscribe to a channel\n"
|
|
3507
|
+
},
|
|
3508
|
+
{
|
|
3509
|
+
"kind": "code",
|
|
3510
|
+
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nconst subscriptionId = subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n);\n```"
|
|
3511
|
+
}
|
|
3512
|
+
]
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"tag": "@example",
|
|
3516
|
+
"content": [
|
|
3517
|
+
{
|
|
3518
|
+
"kind": "text",
|
|
3519
|
+
"text": "Subscribe to a channel: Self-hosted\n"
|
|
3520
|
+
},
|
|
3521
|
+
{
|
|
3522
|
+
"kind": "code",
|
|
3523
|
+
"text": "```ts\nimport { createClient } from '@wix/sdk';\nimport { subscriber } from '@wix/realtime';\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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\nconst subscriptionId = client.subscriber.subscribe(\n { name: 'my-channel' },\n (message, channel) => {\n console.log('Received:', message.payload);\n },\n {\n onSubscribed: (id, isSynced) => console.log('Subscribed', id),\n onSubscriptionError: (error, id) => console.error('Error', error),\n },\n);\n```"
|
|
3524
|
+
}
|
|
3525
|
+
]
|
|
3526
|
+
},
|
|
3527
|
+
{
|
|
3528
|
+
"tag": "@requiredField",
|
|
3529
|
+
"content": [
|
|
3530
|
+
{
|
|
3531
|
+
"kind": "text",
|
|
3532
|
+
"text": "channel"
|
|
3533
|
+
}
|
|
3534
|
+
]
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"tag": "@requiredField",
|
|
3538
|
+
"content": [
|
|
3539
|
+
{
|
|
3540
|
+
"kind": "text",
|
|
3541
|
+
"text": "messageHandler"
|
|
3542
|
+
}
|
|
3543
|
+
]
|
|
3544
|
+
}
|
|
3545
|
+
]
|
|
3546
|
+
},
|
|
3547
|
+
"parameters": [
|
|
3548
|
+
{
|
|
3549
|
+
"id": 118,
|
|
3550
|
+
"name": "httpClient",
|
|
3551
|
+
"variant": "param",
|
|
3552
|
+
"kind": 32768,
|
|
3553
|
+
"flags": {},
|
|
3554
|
+
"type": {
|
|
3555
|
+
"type": "reference",
|
|
3556
|
+
"target": {
|
|
3557
|
+
"sourceFileName": "../../node_modules/@wix/sdk-types/build/index.d.ts",
|
|
3558
|
+
"qualifiedName": "HttpClient"
|
|
3559
|
+
},
|
|
3560
|
+
"name": "HttpClient",
|
|
3561
|
+
"package": "@wix/sdk-types"
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
],
|
|
3565
|
+
"type": {
|
|
3566
|
+
"type": "reference",
|
|
3567
|
+
"target": {
|
|
3568
|
+
"sourceFileName": "src/subscriber/subscriber.public.ts",
|
|
3569
|
+
"qualifiedName": "SubscribeSignature"
|
|
3570
|
+
},
|
|
3571
|
+
"name": "SubscribeSignature",
|
|
3572
|
+
"package": "@wix/realtime"
|
|
3561
3573
|
}
|
|
3562
3574
|
}
|
|
3563
3575
|
]
|
|
3564
|
-
}
|
|
3565
|
-
}
|
|
3566
|
-
},
|
|
3567
|
-
{
|
|
3568
|
-
"id": 72,
|
|
3569
|
-
"name": "PublishChannel",
|
|
3570
|
-
"variant": "declaration",
|
|
3571
|
-
"kind": 4194304,
|
|
3572
|
-
"flags": {},
|
|
3573
|
-
"comment": {
|
|
3574
|
-
"summary": [
|
|
3575
|
-
{
|
|
3576
|
-
"kind": "text",
|
|
3577
|
-
"text": "Realtime broadcast published channel. Publishers send messages to channels and subscribers listen to them."
|
|
3578
|
-
}
|
|
3579
|
-
]
|
|
3580
|
-
},
|
|
3581
|
-
"type": {
|
|
3582
|
-
"type": "reference",
|
|
3583
|
-
"target": 31,
|
|
3584
|
-
"name": "Channel",
|
|
3585
|
-
"package": "@wix/realtime-common"
|
|
3586
|
-
},
|
|
3587
|
-
"extendedBy": [
|
|
3576
|
+
},
|
|
3588
3577
|
{
|
|
3589
|
-
"
|
|
3590
|
-
"
|
|
3591
|
-
"name": "SubscribeChannel"
|
|
3592
|
-
}
|
|
3593
|
-
]
|
|
3594
|
-
},
|
|
3595
|
-
{
|
|
3596
|
-
"id": 87,
|
|
3597
|
-
"name": "SubscriptionErrorHandler",
|
|
3598
|
-
"variant": "declaration",
|
|
3599
|
-
"kind": 4194304,
|
|
3600
|
-
"flags": {},
|
|
3601
|
-
"type": {
|
|
3602
|
-
"type": "reflection",
|
|
3603
|
-
"declaration": {
|
|
3604
|
-
"id": 88,
|
|
3605
|
-
"name": "__type",
|
|
3578
|
+
"id": 119,
|
|
3579
|
+
"name": "unsubscribe",
|
|
3606
3580
|
"variant": "declaration",
|
|
3607
|
-
"kind":
|
|
3581
|
+
"kind": 64,
|
|
3608
3582
|
"flags": {},
|
|
3609
3583
|
"signatures": [
|
|
3610
3584
|
{
|
|
3611
|
-
"id":
|
|
3612
|
-
"name": "
|
|
3585
|
+
"id": 120,
|
|
3586
|
+
"name": "unsubscribe",
|
|
3613
3587
|
"variant": "signature",
|
|
3614
3588
|
"kind": 4096,
|
|
3615
3589
|
"flags": {},
|
|
@@ -3617,35 +3591,67 @@
|
|
|
3617
3591
|
"summary": [
|
|
3618
3592
|
{
|
|
3619
3593
|
"kind": "text",
|
|
3620
|
-
"text": "
|
|
3594
|
+
"text": "Removes 1 or more subscriptions.\n\nYou can unsubscribe in 3 ways:\n- By "
|
|
3595
|
+
},
|
|
3596
|
+
{
|
|
3597
|
+
"kind": "code",
|
|
3598
|
+
"text": "`subscriptionId`"
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
"kind": "text",
|
|
3602
|
+
"text": ": removes a single subscription.\n- By "
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"kind": "code",
|
|
3606
|
+
"text": "`channel`"
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"kind": "text",
|
|
3610
|
+
"text": ": removes all subscriptions to that channel or resource.\n- By both: removes the specific subscription, verifying it matches the channel.\n\nWhen the last subscription on a connection is removed, the connection\ncloses automatically."
|
|
3621
3611
|
}
|
|
3622
|
-
]
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
"name": "error",
|
|
3628
|
-
"variant": "param",
|
|
3629
|
-
"kind": 32768,
|
|
3630
|
-
"flags": {},
|
|
3631
|
-
"comment": {
|
|
3632
|
-
"summary": [
|
|
3612
|
+
],
|
|
3613
|
+
"blockTags": [
|
|
3614
|
+
{
|
|
3615
|
+
"tag": "@example",
|
|
3616
|
+
"content": [
|
|
3633
3617
|
{
|
|
3634
3618
|
"kind": "text",
|
|
3635
|
-
"text": "
|
|
3619
|
+
"text": "Remove the specified subscription.\n"
|
|
3620
|
+
},
|
|
3621
|
+
{
|
|
3622
|
+
"kind": "code",
|
|
3623
|
+
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nsubscriber.unsubscribe({ subscriptionId });\n```"
|
|
3636
3624
|
}
|
|
3637
3625
|
]
|
|
3638
3626
|
},
|
|
3639
|
-
|
|
3640
|
-
"
|
|
3641
|
-
"
|
|
3642
|
-
|
|
3643
|
-
|
|
3627
|
+
{
|
|
3628
|
+
"tag": "@example",
|
|
3629
|
+
"content": [
|
|
3630
|
+
{
|
|
3631
|
+
"kind": "text",
|
|
3632
|
+
"text": "Remove the specified subscription: Self-hosted\n"
|
|
3633
|
+
},
|
|
3634
|
+
{
|
|
3635
|
+
"kind": "code",
|
|
3636
|
+
"text": "```ts\nimport { subscriber } 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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\n// Remove the specified subscription\nclient.subscriber.unsubscribe({ subscriptionId });\n\n// Remove all subscriptions from the specified channel\nclient.subscriber.unsubscribe({ channel: { name: 'my-channel' } });\n```"
|
|
3637
|
+
}
|
|
3638
|
+
]
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"tag": "@requiredField",
|
|
3642
|
+
"content": [
|
|
3643
|
+
{
|
|
3644
|
+
"kind": "text",
|
|
3645
|
+
"text": "options"
|
|
3646
|
+
}
|
|
3647
|
+
]
|
|
3644
3648
|
}
|
|
3645
|
-
|
|
3649
|
+
]
|
|
3650
|
+
},
|
|
3651
|
+
"parameters": [
|
|
3646
3652
|
{
|
|
3647
|
-
"id":
|
|
3648
|
-
"name": "
|
|
3653
|
+
"id": 121,
|
|
3654
|
+
"name": "options",
|
|
3649
3655
|
"variant": "param",
|
|
3650
3656
|
"kind": 32768,
|
|
3651
3657
|
"flags": {},
|
|
@@ -3653,13 +3659,31 @@
|
|
|
3653
3659
|
"summary": [
|
|
3654
3660
|
{
|
|
3655
3661
|
"kind": "text",
|
|
3656
|
-
"text": "
|
|
3662
|
+
"text": "Unsubscribe details. You must specify "
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"kind": "code",
|
|
3666
|
+
"text": "`channel`"
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"kind": "text",
|
|
3670
|
+
"text": ", "
|
|
3671
|
+
},
|
|
3672
|
+
{
|
|
3673
|
+
"kind": "code",
|
|
3674
|
+
"text": "`subscriptionId`"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"kind": "text",
|
|
3678
|
+
"text": ", or both."
|
|
3657
3679
|
}
|
|
3658
3680
|
]
|
|
3659
3681
|
},
|
|
3660
3682
|
"type": {
|
|
3661
|
-
"type": "
|
|
3662
|
-
"
|
|
3683
|
+
"type": "reference",
|
|
3684
|
+
"target": 90,
|
|
3685
|
+
"name": "UnsubscribeOptions",
|
|
3686
|
+
"package": "@wix/realtime-common"
|
|
3663
3687
|
}
|
|
3664
3688
|
}
|
|
3665
3689
|
],
|
|
@@ -3667,29 +3691,10 @@
|
|
|
3667
3691
|
"type": "intrinsic",
|
|
3668
3692
|
"name": "void"
|
|
3669
3693
|
}
|
|
3670
|
-
}
|
|
3671
|
-
]
|
|
3672
|
-
}
|
|
3673
|
-
}
|
|
3674
|
-
},
|
|
3675
|
-
{
|
|
3676
|
-
"id": 92,
|
|
3677
|
-
"name": "SubscriptionHandler",
|
|
3678
|
-
"variant": "declaration",
|
|
3679
|
-
"kind": 4194304,
|
|
3680
|
-
"flags": {},
|
|
3681
|
-
"type": {
|
|
3682
|
-
"type": "reflection",
|
|
3683
|
-
"declaration": {
|
|
3684
|
-
"id": 93,
|
|
3685
|
-
"name": "__type",
|
|
3686
|
-
"variant": "declaration",
|
|
3687
|
-
"kind": 65536,
|
|
3688
|
-
"flags": {},
|
|
3689
|
-
"signatures": [
|
|
3694
|
+
},
|
|
3690
3695
|
{
|
|
3691
|
-
"id":
|
|
3692
|
-
"name": "
|
|
3696
|
+
"id": 122,
|
|
3697
|
+
"name": "unsubscribe",
|
|
3693
3698
|
"variant": "signature",
|
|
3694
3699
|
"kind": 4096,
|
|
3695
3700
|
"flags": {},
|
|
@@ -3697,66 +3702,133 @@
|
|
|
3697
3702
|
"summary": [
|
|
3698
3703
|
{
|
|
3699
3704
|
"kind": "text",
|
|
3700
|
-
"text": "
|
|
3705
|
+
"text": "Removes 1 or more subscriptions.\n\nYou can unsubscribe in 3 ways:\n- By "
|
|
3701
3706
|
},
|
|
3702
3707
|
{
|
|
3703
3708
|
"kind": "code",
|
|
3704
|
-
"text": "`
|
|
3709
|
+
"text": "`subscriptionId`"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"kind": "text",
|
|
3713
|
+
"text": ": removes a single subscription.\n- By "
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
"kind": "code",
|
|
3717
|
+
"text": "`channel`"
|
|
3705
3718
|
},
|
|
3706
3719
|
{
|
|
3707
3720
|
"kind": "text",
|
|
3708
|
-
"text": "
|
|
3721
|
+
"text": ": removes all subscriptions to that channel or resource.\n- By both: removes the specific subscription, verifying it matches the channel.\n\nWhen the last subscription on a connection is removed, the connection\ncloses automatically."
|
|
3709
3722
|
}
|
|
3710
|
-
]
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
"name": "subscriptionId",
|
|
3716
|
-
"variant": "param",
|
|
3717
|
-
"kind": 32768,
|
|
3718
|
-
"flags": {},
|
|
3719
|
-
"comment": {
|
|
3720
|
-
"summary": [
|
|
3723
|
+
],
|
|
3724
|
+
"blockTags": [
|
|
3725
|
+
{
|
|
3726
|
+
"tag": "@example",
|
|
3727
|
+
"content": [
|
|
3721
3728
|
{
|
|
3722
3729
|
"kind": "text",
|
|
3723
|
-
"text": "
|
|
3730
|
+
"text": "Remove the specified subscription.\n"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"kind": "code",
|
|
3734
|
+
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nsubscriber.unsubscribe({ subscriptionId });\n```"
|
|
3724
3735
|
}
|
|
3725
3736
|
]
|
|
3726
3737
|
},
|
|
3727
|
-
|
|
3728
|
-
"
|
|
3729
|
-
"
|
|
3730
|
-
}
|
|
3731
|
-
},
|
|
3732
|
-
{
|
|
3733
|
-
"id": 96,
|
|
3734
|
-
"name": "isSynced",
|
|
3735
|
-
"variant": "param",
|
|
3736
|
-
"kind": 32768,
|
|
3737
|
-
"flags": {},
|
|
3738
|
-
"comment": {
|
|
3739
|
-
"summary": [
|
|
3738
|
+
{
|
|
3739
|
+
"tag": "@example",
|
|
3740
|
+
"content": [
|
|
3740
3741
|
{
|
|
3741
3742
|
"kind": "text",
|
|
3742
|
-
"text": "
|
|
3743
|
+
"text": "Remove the specified subscription: Self-hosted\n"
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
"kind": "code",
|
|
3747
|
+
"text": "```ts\nimport { subscriber } 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: { subscriber },\n // Include the auth strategy and host as relevant\n});\n\n// Remove the specified subscription\nclient.subscriber.unsubscribe({ subscriptionId });\n\n// Remove all subscriptions from the specified channel\nclient.subscriber.unsubscribe({ channel: { name: 'my-channel' } });\n```"
|
|
3743
3748
|
}
|
|
3744
3749
|
]
|
|
3745
3750
|
},
|
|
3751
|
+
{
|
|
3752
|
+
"tag": "@requiredField",
|
|
3753
|
+
"content": [
|
|
3754
|
+
{
|
|
3755
|
+
"kind": "text",
|
|
3756
|
+
"text": "options"
|
|
3757
|
+
}
|
|
3758
|
+
]
|
|
3759
|
+
}
|
|
3760
|
+
]
|
|
3761
|
+
},
|
|
3762
|
+
"parameters": [
|
|
3763
|
+
{
|
|
3764
|
+
"id": 123,
|
|
3765
|
+
"name": "_",
|
|
3766
|
+
"variant": "param",
|
|
3767
|
+
"kind": 32768,
|
|
3768
|
+
"flags": {},
|
|
3746
3769
|
"type": {
|
|
3747
|
-
"type": "
|
|
3748
|
-
"
|
|
3770
|
+
"type": "reference",
|
|
3771
|
+
"target": {
|
|
3772
|
+
"sourceFileName": "../../node_modules/@wix/sdk-types/build/index.d.ts",
|
|
3773
|
+
"qualifiedName": "HttpClient"
|
|
3774
|
+
},
|
|
3775
|
+
"name": "HttpClient",
|
|
3776
|
+
"package": "@wix/sdk-types"
|
|
3749
3777
|
}
|
|
3750
3778
|
}
|
|
3751
3779
|
],
|
|
3752
3780
|
"type": {
|
|
3753
|
-
"type": "
|
|
3754
|
-
"
|
|
3781
|
+
"type": "reference",
|
|
3782
|
+
"target": {
|
|
3783
|
+
"sourceFileName": "src/subscriber/subscriber.public.ts",
|
|
3784
|
+
"qualifiedName": "UnsubscribeSignature"
|
|
3785
|
+
},
|
|
3786
|
+
"name": "UnsubscribeSignature",
|
|
3787
|
+
"package": "@wix/realtime"
|
|
3755
3788
|
}
|
|
3756
3789
|
}
|
|
3757
3790
|
]
|
|
3758
3791
|
}
|
|
3759
|
-
|
|
3792
|
+
],
|
|
3793
|
+
"groups": [
|
|
3794
|
+
{
|
|
3795
|
+
"title": "Enumerations",
|
|
3796
|
+
"children": [
|
|
3797
|
+
107
|
|
3798
|
+
]
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"title": "Classes",
|
|
3802
|
+
"children": [
|
|
3803
|
+
93
|
|
3804
|
+
]
|
|
3805
|
+
},
|
|
3806
|
+
{
|
|
3807
|
+
"title": "Interfaces",
|
|
3808
|
+
"children": [
|
|
3809
|
+
67,
|
|
3810
|
+
75,
|
|
3811
|
+
63,
|
|
3812
|
+
87,
|
|
3813
|
+
90
|
|
3814
|
+
]
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
"title": "Type Aliases",
|
|
3818
|
+
"children": [
|
|
3819
|
+
70,
|
|
3820
|
+
82,
|
|
3821
|
+
77
|
|
3822
|
+
]
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"title": "Functions",
|
|
3826
|
+
"children": [
|
|
3827
|
+
112,
|
|
3828
|
+
119
|
|
3829
|
+
]
|
|
3830
|
+
}
|
|
3831
|
+
]
|
|
3760
3832
|
}
|
|
3761
3833
|
],
|
|
3762
3834
|
"groups": [
|
|
@@ -3765,38 +3837,7 @@
|
|
|
3765
3837
|
"children": [
|
|
3766
3838
|
52,
|
|
3767
3839
|
1,
|
|
3768
|
-
|
|
3769
|
-
]
|
|
3770
|
-
},
|
|
3771
|
-
{
|
|
3772
|
-
"title": "Enumerations",
|
|
3773
|
-
"children": [
|
|
3774
|
-
117
|
|
3775
|
-
]
|
|
3776
|
-
},
|
|
3777
|
-
{
|
|
3778
|
-
"title": "Classes",
|
|
3779
|
-
"children": [
|
|
3780
|
-
103
|
|
3781
|
-
]
|
|
3782
|
-
},
|
|
3783
|
-
{
|
|
3784
|
-
"title": "Interfaces",
|
|
3785
|
-
"children": [
|
|
3786
|
-
77,
|
|
3787
|
-
85,
|
|
3788
|
-
73,
|
|
3789
|
-
97,
|
|
3790
|
-
100
|
|
3791
|
-
]
|
|
3792
|
-
},
|
|
3793
|
-
{
|
|
3794
|
-
"title": "Type Aliases",
|
|
3795
|
-
"children": [
|
|
3796
|
-
80,
|
|
3797
|
-
72,
|
|
3798
|
-
87,
|
|
3799
|
-
92
|
|
3840
|
+
62
|
|
3800
3841
|
]
|
|
3801
3842
|
}
|
|
3802
3843
|
],
|