@wix/realtime 1.0.48 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1487 -1470
- 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,1244 @@
|
|
|
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
|
-
"type": "intrinsic",
|
|
2358
|
-
"name": "
|
|
2359
|
-
}
|
|
2360
|
-
},
|
|
2361
|
-
{
|
|
2362
|
-
"id":
|
|
2363
|
-
"name": "
|
|
2364
|
-
"variant": "
|
|
2365
|
-
"kind":
|
|
2366
|
-
"flags": {
|
|
2367
|
-
|
|
2368
|
-
"summary": [
|
|
2369
|
-
{
|
|
2370
|
-
"kind": "text",
|
|
2371
|
-
"text": "Removes 1 or more subscriptions.\n\nYou can unsubscribe in 3 ways:\n- By "
|
|
2372
|
-
},
|
|
2373
|
-
{
|
|
2374
|
-
"kind": "code",
|
|
2375
|
-
"text": "`subscriptionId`"
|
|
2376
|
-
},
|
|
2377
|
-
{
|
|
2378
|
-
"kind": "text",
|
|
2379
|
-
"text": ": removes a single subscription.\n- By "
|
|
2380
|
-
},
|
|
2381
|
-
{
|
|
2382
|
-
"kind": "code",
|
|
2383
|
-
"text": "`channel`"
|
|
2384
|
-
},
|
|
2385
|
-
{
|
|
2386
|
-
"kind": "text",
|
|
2387
|
-
"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."
|
|
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 "
|
|
2412
|
+
"type": "intrinsic",
|
|
2413
|
+
"name": "boolean"
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"id": 106,
|
|
2418
|
+
"name": "status",
|
|
2419
|
+
"variant": "declaration",
|
|
2420
|
+
"kind": 1024,
|
|
2421
|
+
"flags": {
|
|
2422
|
+
"isOptional": true
|
|
2836
2423
|
},
|
|
2837
|
-
{
|
|
2838
|
-
"
|
|
2839
|
-
|
|
2424
|
+
"comment": {
|
|
2425
|
+
"summary": [
|
|
2426
|
+
{
|
|
2427
|
+
"kind": "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 "
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"kind": "code",
|
|
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": "ID of the app that manages the channel you want to subscribe to.\n\nTo subscribe to a channel managed by another Wix app installed on the site, specify that app's ID. When empty, you subscribe to channels managed by the current app or by the site's backend code.\n\nLearn more about [cross-app subscriptions](https://dev.wix.com/docs/sdk/core-modules/realtime/realtime/introduction#cross-app-subscriptions).\n\n> **Note**: The app that manages the channel must implement the [Realtime Permissions Provider](https://dev.wix.com/docs/sdk/core-modules/realtime/extensions/realtime-permissions-provider/introduction) service plugin to authorize cross-app subscriptions."
|
|
2638
|
+
}
|
|
2639
|
+
]
|
|
3053
2640
|
},
|
|
3054
|
-
{
|
|
3055
|
-
"
|
|
3056
|
-
"
|
|
2641
|
+
"type": {
|
|
2642
|
+
"type": "intrinsic",
|
|
2643
|
+
"name": "string"
|
|
2644
|
+
}
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
"id": 64,
|
|
2648
|
+
"name": "name",
|
|
2649
|
+
"variant": "declaration",
|
|
2650
|
+
"kind": 1024,
|
|
2651
|
+
"flags": {},
|
|
2652
|
+
"comment": {
|
|
2653
|
+
"summary": [
|
|
2654
|
+
{
|
|
2655
|
+
"kind": "text",
|
|
2656
|
+
"text": "Channel name.\n\n> **Notes:**\n> - Supports only alphanumeric characters, hyphens, and underscores.\n> - The combined length of "
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"kind": "code",
|
|
2660
|
+
"text": "`name`"
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
"kind": "text",
|
|
2664
|
+
"text": " and "
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
"kind": "code",
|
|
2668
|
+
"text": "`resourceId`"
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
"kind": "text",
|
|
2672
|
+
"text": " can't exceed 140 characters."
|
|
2673
|
+
}
|
|
2674
|
+
]
|
|
3057
2675
|
},
|
|
3058
|
-
{
|
|
3059
|
-
"
|
|
3060
|
-
"
|
|
2676
|
+
"type": {
|
|
2677
|
+
"type": "intrinsic",
|
|
2678
|
+
"name": "string"
|
|
3061
2679
|
}
|
|
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 "
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
"id": 65,
|
|
2683
|
+
"name": "resourceId",
|
|
2684
|
+
"variant": "declaration",
|
|
2685
|
+
"kind": 1024,
|
|
2686
|
+
"flags": {
|
|
2687
|
+
"isOptional": true
|
|
3088
2688
|
},
|
|
3089
|
-
{
|
|
3090
|
-
"
|
|
3091
|
-
|
|
2689
|
+
"comment": {
|
|
2690
|
+
"summary": [
|
|
2691
|
+
{
|
|
2692
|
+
"kind": "text",
|
|
2693
|
+
"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."
|
|
2694
|
+
}
|
|
2695
|
+
]
|
|
3092
2696
|
},
|
|
3093
|
-
{
|
|
3094
|
-
"
|
|
3095
|
-
"
|
|
2697
|
+
"type": {
|
|
2698
|
+
"type": "intrinsic",
|
|
2699
|
+
"name": "string"
|
|
3096
2700
|
}
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
"
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
2701
|
+
}
|
|
2702
|
+
],
|
|
2703
|
+
"groups": [
|
|
2704
|
+
{
|
|
2705
|
+
"title": "Properties",
|
|
2706
|
+
"children": [
|
|
2707
|
+
66,
|
|
2708
|
+
64,
|
|
2709
|
+
65
|
|
2710
|
+
]
|
|
2711
|
+
}
|
|
2712
|
+
]
|
|
3108
2713
|
},
|
|
3109
2714
|
{
|
|
3110
|
-
"id":
|
|
3111
|
-
"name": "
|
|
2715
|
+
"id": 87,
|
|
2716
|
+
"name": "SubscriptionOptions",
|
|
3112
2717
|
"variant": "declaration",
|
|
3113
|
-
"kind":
|
|
3114
|
-
"flags": {
|
|
3115
|
-
"isOptional": true
|
|
3116
|
-
},
|
|
2718
|
+
"kind": 256,
|
|
2719
|
+
"flags": {},
|
|
3117
2720
|
"comment": {
|
|
3118
2721
|
"summary": [
|
|
3119
2722
|
{
|
|
3120
2723
|
"kind": "text",
|
|
3121
|
-
"text": "
|
|
2724
|
+
"text": "Subscription status handlers that run whenever a subscription is established, re-established, or fails."
|
|
3122
2725
|
}
|
|
3123
2726
|
]
|
|
3124
2727
|
},
|
|
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
2728
|
"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`"
|
|
2729
|
+
{
|
|
2730
|
+
"id": 88,
|
|
2731
|
+
"name": "onSubscribed",
|
|
2732
|
+
"variant": "declaration",
|
|
2733
|
+
"kind": 1024,
|
|
2734
|
+
"flags": {
|
|
2735
|
+
"isOptional": true
|
|
3187
2736
|
},
|
|
3188
|
-
{
|
|
3189
|
-
"
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
2737
|
+
"comment": {
|
|
2738
|
+
"summary": [
|
|
2739
|
+
{
|
|
2740
|
+
"kind": "text",
|
|
2741
|
+
"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 "
|
|
2742
|
+
},
|
|
2743
|
+
{
|
|
2744
|
+
"kind": "code",
|
|
2745
|
+
"text": "`isSynced`"
|
|
2746
|
+
},
|
|
3198
2747
|
{
|
|
3199
2748
|
"kind": "text",
|
|
3200
|
-
"text": "
|
|
2749
|
+
"text": " parameter indicates whether missed messages were restored."
|
|
2750
|
+
}
|
|
2751
|
+
],
|
|
2752
|
+
"blockTags": [
|
|
2753
|
+
{
|
|
2754
|
+
"tag": "@param",
|
|
2755
|
+
"name": "subscriptionId",
|
|
2756
|
+
"content": [
|
|
2757
|
+
{
|
|
2758
|
+
"kind": "text",
|
|
2759
|
+
"text": "ID of the subscription."
|
|
2760
|
+
}
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"tag": "@param",
|
|
2765
|
+
"name": "isSynced",
|
|
2766
|
+
"content": [
|
|
2767
|
+
{
|
|
2768
|
+
"kind": "text",
|
|
2769
|
+
"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, "
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
"kind": "code",
|
|
2773
|
+
"text": "`isSynced`"
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"kind": "text",
|
|
2777
|
+
"text": " is "
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"kind": "code",
|
|
2781
|
+
"text": "`false`"
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"kind": "text",
|
|
2785
|
+
"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, "
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"kind": "code",
|
|
2789
|
+
"text": "`isSynced`"
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
"kind": "text",
|
|
2793
|
+
"text": " is "
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"kind": "code",
|
|
2797
|
+
"text": "`true`"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"kind": "text",
|
|
2801
|
+
"text": ". No further action is necessary.\n\n- When re-subscribing but some messages weren't restored, "
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"kind": "code",
|
|
2805
|
+
"text": "`isSynced`"
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
"kind": "text",
|
|
2809
|
+
"text": " is "
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
"kind": "code",
|
|
2813
|
+
"text": "`false`"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"kind": "text",
|
|
2817
|
+
"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. -->"
|
|
2818
|
+
}
|
|
2819
|
+
]
|
|
3201
2820
|
}
|
|
3202
2821
|
]
|
|
3203
2822
|
},
|
|
3204
|
-
{
|
|
3205
|
-
"
|
|
3206
|
-
"
|
|
3207
|
-
"
|
|
2823
|
+
"type": {
|
|
2824
|
+
"type": "reference",
|
|
2825
|
+
"target": 77,
|
|
2826
|
+
"name": "SubscriptionHandler",
|
|
2827
|
+
"package": "@wix/realtime-common"
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"id": 89,
|
|
2832
|
+
"name": "onSubscriptionError",
|
|
2833
|
+
"variant": "declaration",
|
|
2834
|
+
"kind": 1024,
|
|
2835
|
+
"flags": {
|
|
2836
|
+
"isOptional": true
|
|
2837
|
+
},
|
|
2838
|
+
"comment": {
|
|
2839
|
+
"summary": [
|
|
3208
2840
|
{
|
|
3209
2841
|
"kind": "text",
|
|
3210
|
-
"text": "
|
|
2842
|
+
"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
2843
|
},
|
|
3212
2844
|
{
|
|
3213
2845
|
"kind": "code",
|
|
3214
|
-
"text": "`
|
|
2846
|
+
"text": "`error.recoverable`"
|
|
3215
2847
|
},
|
|
3216
2848
|
{
|
|
3217
2849
|
"kind": "text",
|
|
3218
|
-
"text": "
|
|
2850
|
+
"text": ":\n - When "
|
|
3219
2851
|
},
|
|
3220
2852
|
{
|
|
3221
2853
|
"kind": "code",
|
|
3222
|
-
"text": "`
|
|
2854
|
+
"text": "`true`"
|
|
3223
2855
|
},
|
|
3224
2856
|
{
|
|
3225
2857
|
"kind": "text",
|
|
3226
|
-
"text": ",
|
|
2858
|
+
"text": ", the error is recoverable. The subscription is automatically re-attempted. No further action necessary.\n - When "
|
|
3227
2859
|
},
|
|
3228
2860
|
{
|
|
3229
2861
|
"kind": "code",
|
|
3230
|
-
"text": "`
|
|
2862
|
+
"text": "`false`"
|
|
3231
2863
|
},
|
|
3232
2864
|
{
|
|
3233
2865
|
"kind": "text",
|
|
3234
|
-
"text": "
|
|
2866
|
+
"text": ", the error isn't recoverable. Establish the subscription again.\n\n- **Connection error**: Runs on each failed subscription attempt. The "
|
|
3235
2867
|
},
|
|
3236
2868
|
{
|
|
3237
2869
|
"kind": "code",
|
|
3238
|
-
"text": "`
|
|
2870
|
+
"text": "`error.recoverable`"
|
|
3239
2871
|
},
|
|
3240
2872
|
{
|
|
3241
2873
|
"kind": "text",
|
|
3242
|
-
"text": "
|
|
2874
|
+
"text": " flag is always "
|
|
3243
2875
|
},
|
|
3244
2876
|
{
|
|
3245
2877
|
"kind": "code",
|
|
3246
|
-
"text": "`
|
|
2878
|
+
"text": "`true`"
|
|
3247
2879
|
},
|
|
3248
2880
|
{
|
|
3249
2881
|
"kind": "text",
|
|
3250
|
-
"text": " is "
|
|
3251
|
-
}
|
|
2882
|
+
"text": ", as the subscription is re-established."
|
|
2883
|
+
}
|
|
2884
|
+
],
|
|
2885
|
+
"blockTags": [
|
|
3252
2886
|
{
|
|
3253
|
-
"
|
|
3254
|
-
"
|
|
2887
|
+
"tag": "@param",
|
|
2888
|
+
"name": "error",
|
|
2889
|
+
"content": [
|
|
2890
|
+
{
|
|
2891
|
+
"kind": "text",
|
|
2892
|
+
"text": "Error that occurred. Check "
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"kind": "code",
|
|
2896
|
+
"text": "`errorCode`"
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
"kind": "text",
|
|
2900
|
+
"text": " and "
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
"kind": "code",
|
|
2904
|
+
"text": "`recoverable`"
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
"kind": "text",
|
|
2908
|
+
"text": " to determine the type and whether manual action is required."
|
|
2909
|
+
}
|
|
2910
|
+
]
|
|
3255
2911
|
},
|
|
3256
2912
|
{
|
|
3257
|
-
"
|
|
3258
|
-
"
|
|
2913
|
+
"tag": "@param",
|
|
2914
|
+
"name": "subscriptionId",
|
|
2915
|
+
"content": [
|
|
2916
|
+
{
|
|
2917
|
+
"kind": "text",
|
|
2918
|
+
"text": "ID of the subscription that generated the error."
|
|
2919
|
+
}
|
|
2920
|
+
]
|
|
3259
2921
|
}
|
|
3260
2922
|
]
|
|
2923
|
+
},
|
|
2924
|
+
"type": {
|
|
2925
|
+
"type": "reference",
|
|
2926
|
+
"target": 82,
|
|
2927
|
+
"name": "SubscriptionErrorHandler",
|
|
2928
|
+
"package": "@wix/realtime-common"
|
|
3261
2929
|
}
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
"
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
2930
|
+
}
|
|
2931
|
+
],
|
|
2932
|
+
"groups": [
|
|
2933
|
+
{
|
|
2934
|
+
"title": "Properties",
|
|
2935
|
+
"children": [
|
|
2936
|
+
88,
|
|
2937
|
+
89
|
|
2938
|
+
]
|
|
2939
|
+
}
|
|
2940
|
+
]
|
|
3270
2941
|
},
|
|
3271
2942
|
{
|
|
3272
|
-
"id":
|
|
3273
|
-
"name": "
|
|
2943
|
+
"id": 90,
|
|
2944
|
+
"name": "UnsubscribeOptions",
|
|
3274
2945
|
"variant": "declaration",
|
|
3275
|
-
"kind":
|
|
3276
|
-
"flags": {
|
|
3277
|
-
"isOptional": true
|
|
3278
|
-
},
|
|
2946
|
+
"kind": 256,
|
|
2947
|
+
"flags": {},
|
|
3279
2948
|
"comment": {
|
|
3280
2949
|
"summary": [
|
|
3281
2950
|
{
|
|
3282
2951
|
"kind": "text",
|
|
3283
|
-
"text": "
|
|
3284
|
-
},
|
|
3285
|
-
{
|
|
3286
|
-
"kind": "code",
|
|
3287
|
-
"text": "`error.recoverable`"
|
|
3288
|
-
},
|
|
3289
|
-
{
|
|
3290
|
-
"kind": "text",
|
|
3291
|
-
"text": ":\n - When "
|
|
2952
|
+
"text": "Unsubscribe options. Specify "
|
|
3292
2953
|
},
|
|
3293
2954
|
{
|
|
3294
2955
|
"kind": "code",
|
|
3295
|
-
"text": "`
|
|
2956
|
+
"text": "`channel`"
|
|
3296
2957
|
},
|
|
3297
2958
|
{
|
|
3298
2959
|
"kind": "text",
|
|
3299
|
-
"text": ",
|
|
2960
|
+
"text": ", "
|
|
3300
2961
|
},
|
|
3301
2962
|
{
|
|
3302
2963
|
"kind": "code",
|
|
3303
|
-
"text": "`
|
|
2964
|
+
"text": "`subscriptionId`"
|
|
3304
2965
|
},
|
|
3305
2966
|
{
|
|
3306
2967
|
"kind": "text",
|
|
3307
|
-
"text": ",
|
|
2968
|
+
"text": ", or both:\n\n- To remove all subscriptions from a channel, specify the channel in "
|
|
3308
2969
|
},
|
|
3309
2970
|
{
|
|
3310
2971
|
"kind": "code",
|
|
3311
|
-
"text": "`
|
|
2972
|
+
"text": "`channel.name`"
|
|
3312
2973
|
},
|
|
3313
2974
|
{
|
|
3314
2975
|
"kind": "text",
|
|
3315
|
-
"text": "
|
|
2976
|
+
"text": ".\n- To remove a single subscription, specify the "
|
|
3316
2977
|
},
|
|
3317
2978
|
{
|
|
3318
2979
|
"kind": "code",
|
|
3319
|
-
"text": "`
|
|
2980
|
+
"text": "`subscriptionId`"
|
|
3320
2981
|
},
|
|
3321
2982
|
{
|
|
3322
2983
|
"kind": "text",
|
|
3323
|
-
"text": ",
|
|
2984
|
+
"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
2985
|
}
|
|
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
|
-
},
|
|
2986
|
+
]
|
|
2987
|
+
},
|
|
2988
|
+
"children": [
|
|
2989
|
+
{
|
|
2990
|
+
"id": 91,
|
|
2991
|
+
"name": "channel",
|
|
2992
|
+
"variant": "declaration",
|
|
2993
|
+
"kind": 1024,
|
|
2994
|
+
"flags": {
|
|
2995
|
+
"isOptional": true
|
|
2996
|
+
},
|
|
2997
|
+
"comment": {
|
|
2998
|
+
"summary": [
|
|
3347
2999
|
{
|
|
3348
3000
|
"kind": "text",
|
|
3349
|
-
"text": " to
|
|
3001
|
+
"text": "Channel or resource to unsubscribe from.\n\nWhen empty, the subscription is removed without verifying that it belongs to the channel."
|
|
3350
3002
|
}
|
|
3351
3003
|
]
|
|
3352
3004
|
},
|
|
3353
|
-
{
|
|
3354
|
-
"
|
|
3355
|
-
"
|
|
3356
|
-
"
|
|
3005
|
+
"type": {
|
|
3006
|
+
"type": "reference",
|
|
3007
|
+
"target": 63,
|
|
3008
|
+
"name": "SubscribeChannel",
|
|
3009
|
+
"package": "@wix/realtime-common"
|
|
3010
|
+
}
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
"id": 92,
|
|
3014
|
+
"name": "subscriptionId",
|
|
3015
|
+
"variant": "declaration",
|
|
3016
|
+
"kind": 1024,
|
|
3017
|
+
"flags": {
|
|
3018
|
+
"isOptional": true
|
|
3019
|
+
},
|
|
3020
|
+
"comment": {
|
|
3021
|
+
"summary": [
|
|
3357
3022
|
{
|
|
3358
3023
|
"kind": "text",
|
|
3359
|
-
"text": "ID of the subscription
|
|
3024
|
+
"text": "ID of the subscription to remove.\n\nWhen empty, all subscriptions to the specified channel are removed."
|
|
3360
3025
|
}
|
|
3361
3026
|
]
|
|
3027
|
+
},
|
|
3028
|
+
"type": {
|
|
3029
|
+
"type": "intrinsic",
|
|
3030
|
+
"name": "string"
|
|
3362
3031
|
}
|
|
3363
|
-
|
|
3364
|
-
|
|
3032
|
+
}
|
|
3033
|
+
],
|
|
3034
|
+
"groups": [
|
|
3035
|
+
{
|
|
3036
|
+
"title": "Properties",
|
|
3037
|
+
"children": [
|
|
3038
|
+
91,
|
|
3039
|
+
92
|
|
3040
|
+
]
|
|
3041
|
+
}
|
|
3042
|
+
]
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
"id": 70,
|
|
3046
|
+
"name": "MessageHandler",
|
|
3047
|
+
"variant": "declaration",
|
|
3048
|
+
"kind": 4194304,
|
|
3049
|
+
"flags": {},
|
|
3365
3050
|
"type": {
|
|
3366
|
-
"type": "
|
|
3367
|
-
"
|
|
3368
|
-
|
|
3369
|
-
|
|
3051
|
+
"type": "reflection",
|
|
3052
|
+
"declaration": {
|
|
3053
|
+
"id": 71,
|
|
3054
|
+
"name": "__type",
|
|
3055
|
+
"variant": "declaration",
|
|
3056
|
+
"kind": 65536,
|
|
3057
|
+
"flags": {},
|
|
3058
|
+
"signatures": [
|
|
3059
|
+
{
|
|
3060
|
+
"id": 72,
|
|
3061
|
+
"name": "__type",
|
|
3062
|
+
"variant": "signature",
|
|
3063
|
+
"kind": 4096,
|
|
3064
|
+
"flags": {},
|
|
3065
|
+
"comment": {
|
|
3066
|
+
"summary": [
|
|
3067
|
+
{
|
|
3068
|
+
"kind": "text",
|
|
3069
|
+
"text": "Runs when a message is published to a channel or resource the subscriber listens to."
|
|
3070
|
+
}
|
|
3071
|
+
]
|
|
3072
|
+
},
|
|
3073
|
+
"parameters": [
|
|
3074
|
+
{
|
|
3075
|
+
"id": 73,
|
|
3076
|
+
"name": "message",
|
|
3077
|
+
"variant": "param",
|
|
3078
|
+
"kind": 32768,
|
|
3079
|
+
"flags": {},
|
|
3080
|
+
"comment": {
|
|
3081
|
+
"summary": [
|
|
3082
|
+
{
|
|
3083
|
+
"kind": "text",
|
|
3084
|
+
"text": "Published message."
|
|
3085
|
+
}
|
|
3086
|
+
]
|
|
3087
|
+
},
|
|
3088
|
+
"type": {
|
|
3089
|
+
"type": "reference",
|
|
3090
|
+
"target": 67,
|
|
3091
|
+
"name": "Message",
|
|
3092
|
+
"package": "@wix/realtime-common"
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
{
|
|
3096
|
+
"id": 74,
|
|
3097
|
+
"name": "channel",
|
|
3098
|
+
"variant": "param",
|
|
3099
|
+
"kind": 32768,
|
|
3100
|
+
"flags": {},
|
|
3101
|
+
"comment": {
|
|
3102
|
+
"summary": [
|
|
3103
|
+
{
|
|
3104
|
+
"kind": "text",
|
|
3105
|
+
"text": "Channel the message was published to."
|
|
3106
|
+
}
|
|
3107
|
+
]
|
|
3108
|
+
},
|
|
3109
|
+
"type": {
|
|
3110
|
+
"type": "reference",
|
|
3111
|
+
"target": 63,
|
|
3112
|
+
"name": "SubscribeChannel",
|
|
3113
|
+
"package": "@wix/realtime-common"
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
],
|
|
3117
|
+
"type": {
|
|
3118
|
+
"type": "intrinsic",
|
|
3119
|
+
"name": "void"
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
]
|
|
3123
|
+
}
|
|
3370
3124
|
}
|
|
3371
|
-
}
|
|
3372
|
-
],
|
|
3373
|
-
"groups": [
|
|
3125
|
+
},
|
|
3374
3126
|
{
|
|
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
|
-
|
|
3127
|
+
"id": 82,
|
|
3128
|
+
"name": "SubscriptionErrorHandler",
|
|
3129
|
+
"variant": "declaration",
|
|
3130
|
+
"kind": 4194304,
|
|
3131
|
+
"flags": {},
|
|
3132
|
+
"type": {
|
|
3133
|
+
"type": "reflection",
|
|
3134
|
+
"declaration": {
|
|
3135
|
+
"id": 83,
|
|
3136
|
+
"name": "__type",
|
|
3137
|
+
"variant": "declaration",
|
|
3138
|
+
"kind": 65536,
|
|
3139
|
+
"flags": {},
|
|
3140
|
+
"signatures": [
|
|
3141
|
+
{
|
|
3142
|
+
"id": 84,
|
|
3143
|
+
"name": "__type",
|
|
3144
|
+
"variant": "signature",
|
|
3145
|
+
"kind": 4096,
|
|
3146
|
+
"flags": {},
|
|
3147
|
+
"comment": {
|
|
3148
|
+
"summary": [
|
|
3149
|
+
{
|
|
3150
|
+
"kind": "text",
|
|
3151
|
+
"text": "Runs when a subscription error occurs."
|
|
3152
|
+
}
|
|
3153
|
+
]
|
|
3154
|
+
},
|
|
3155
|
+
"parameters": [
|
|
3156
|
+
{
|
|
3157
|
+
"id": 85,
|
|
3158
|
+
"name": "error",
|
|
3159
|
+
"variant": "param",
|
|
3160
|
+
"kind": 32768,
|
|
3161
|
+
"flags": {},
|
|
3162
|
+
"comment": {
|
|
3163
|
+
"summary": [
|
|
3164
|
+
{
|
|
3165
|
+
"kind": "text",
|
|
3166
|
+
"text": "Error that occurred."
|
|
3167
|
+
}
|
|
3168
|
+
]
|
|
3169
|
+
},
|
|
3170
|
+
"type": {
|
|
3171
|
+
"type": "reference",
|
|
3172
|
+
"target": 93,
|
|
3173
|
+
"name": "RealtimeError",
|
|
3174
|
+
"package": "@wix/realtime-common"
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
"id": 86,
|
|
3179
|
+
"name": "subscriptionId",
|
|
3180
|
+
"variant": "param",
|
|
3181
|
+
"kind": 32768,
|
|
3182
|
+
"flags": {},
|
|
3183
|
+
"comment": {
|
|
3184
|
+
"summary": [
|
|
3185
|
+
{
|
|
3186
|
+
"kind": "text",
|
|
3187
|
+
"text": "ID of the subscription that generated the error."
|
|
3188
|
+
}
|
|
3189
|
+
]
|
|
3190
|
+
},
|
|
3191
|
+
"type": {
|
|
3192
|
+
"type": "intrinsic",
|
|
3193
|
+
"name": "string"
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
],
|
|
3197
|
+
"type": {
|
|
3198
|
+
"type": "intrinsic",
|
|
3199
|
+
"name": "void"
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
]
|
|
3203
|
+
}
|
|
3426
3204
|
}
|
|
3427
|
-
|
|
3428
|
-
},
|
|
3429
|
-
"children": [
|
|
3205
|
+
},
|
|
3430
3206
|
{
|
|
3431
|
-
"id":
|
|
3432
|
-
"name": "
|
|
3207
|
+
"id": 77,
|
|
3208
|
+
"name": "SubscriptionHandler",
|
|
3433
3209
|
"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
|
-
},
|
|
3210
|
+
"kind": 4194304,
|
|
3211
|
+
"flags": {},
|
|
3446
3212
|
"type": {
|
|
3447
|
-
"type": "
|
|
3448
|
-
"
|
|
3449
|
-
|
|
3450
|
-
|
|
3213
|
+
"type": "reflection",
|
|
3214
|
+
"declaration": {
|
|
3215
|
+
"id": 78,
|
|
3216
|
+
"name": "__type",
|
|
3217
|
+
"variant": "declaration",
|
|
3218
|
+
"kind": 65536,
|
|
3219
|
+
"flags": {},
|
|
3220
|
+
"signatures": [
|
|
3221
|
+
{
|
|
3222
|
+
"id": 79,
|
|
3223
|
+
"name": "__type",
|
|
3224
|
+
"variant": "signature",
|
|
3225
|
+
"kind": 4096,
|
|
3226
|
+
"flags": {},
|
|
3227
|
+
"comment": {
|
|
3228
|
+
"summary": [
|
|
3229
|
+
{
|
|
3230
|
+
"kind": "text",
|
|
3231
|
+
"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 "
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
"kind": "code",
|
|
3235
|
+
"text": "`isSynced`"
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
"kind": "text",
|
|
3239
|
+
"text": " flag indicates whether all missed messages were successfully delivered.\n\n<!-- TODO: Document server-side buffer limits for message replay. -->"
|
|
3240
|
+
}
|
|
3241
|
+
]
|
|
3242
|
+
},
|
|
3243
|
+
"parameters": [
|
|
3244
|
+
{
|
|
3245
|
+
"id": 80,
|
|
3246
|
+
"name": "subscriptionId",
|
|
3247
|
+
"variant": "param",
|
|
3248
|
+
"kind": 32768,
|
|
3249
|
+
"flags": {},
|
|
3250
|
+
"comment": {
|
|
3251
|
+
"summary": [
|
|
3252
|
+
{
|
|
3253
|
+
"kind": "text",
|
|
3254
|
+
"text": "Subscription ID."
|
|
3255
|
+
}
|
|
3256
|
+
]
|
|
3257
|
+
},
|
|
3258
|
+
"type": {
|
|
3259
|
+
"type": "intrinsic",
|
|
3260
|
+
"name": "string"
|
|
3261
|
+
}
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
"id": 81,
|
|
3265
|
+
"name": "isSynced",
|
|
3266
|
+
"variant": "param",
|
|
3267
|
+
"kind": 32768,
|
|
3268
|
+
"flags": {},
|
|
3269
|
+
"comment": {
|
|
3270
|
+
"summary": [
|
|
3271
|
+
{
|
|
3272
|
+
"kind": "text",
|
|
3273
|
+
"text": "Whether the message history was fully restored."
|
|
3274
|
+
}
|
|
3275
|
+
]
|
|
3276
|
+
},
|
|
3277
|
+
"type": {
|
|
3278
|
+
"type": "intrinsic",
|
|
3279
|
+
"name": "boolean"
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
],
|
|
3283
|
+
"type": {
|
|
3284
|
+
"type": "intrinsic",
|
|
3285
|
+
"name": "void"
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
]
|
|
3289
|
+
}
|
|
3451
3290
|
}
|
|
3452
3291
|
},
|
|
3453
3292
|
{
|
|
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",
|
|
3293
|
+
"id": 112,
|
|
3294
|
+
"name": "subscribe",
|
|
3496
3295
|
"variant": "declaration",
|
|
3497
|
-
"kind":
|
|
3296
|
+
"kind": 64,
|
|
3498
3297
|
"flags": {},
|
|
3499
3298
|
"signatures": [
|
|
3500
3299
|
{
|
|
3501
|
-
"id":
|
|
3502
|
-
"name": "
|
|
3300
|
+
"id": 113,
|
|
3301
|
+
"name": "subscribe",
|
|
3503
3302
|
"variant": "signature",
|
|
3504
3303
|
"kind": 4096,
|
|
3505
3304
|
"flags": {},
|
|
@@ -3507,14 +3306,76 @@
|
|
|
3507
3306
|
"summary": [
|
|
3508
3307
|
{
|
|
3509
3308
|
"kind": "text",
|
|
3510
|
-
"text": "
|
|
3309
|
+
"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 "
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"kind": "code",
|
|
3313
|
+
"text": "`options`"
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
"kind": "text",
|
|
3317
|
+
"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 "
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"kind": "code",
|
|
3321
|
+
"text": "`onSubscribed()`"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"kind": "text",
|
|
3325
|
+
"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)."
|
|
3326
|
+
}
|
|
3327
|
+
],
|
|
3328
|
+
"blockTags": [
|
|
3329
|
+
{
|
|
3330
|
+
"tag": "@example",
|
|
3331
|
+
"content": [
|
|
3332
|
+
{
|
|
3333
|
+
"kind": "text",
|
|
3334
|
+
"text": "Subscribe to a channel\n"
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"kind": "code",
|
|
3338
|
+
"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```"
|
|
3339
|
+
}
|
|
3340
|
+
]
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
"tag": "@example",
|
|
3344
|
+
"content": [
|
|
3345
|
+
{
|
|
3346
|
+
"kind": "text",
|
|
3347
|
+
"text": "Subscribe to a channel: Self-hosted\n"
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"kind": "code",
|
|
3351
|
+
"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```"
|
|
3352
|
+
}
|
|
3353
|
+
]
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"tag": "@requiredField",
|
|
3357
|
+
"content": [
|
|
3358
|
+
{
|
|
3359
|
+
"kind": "text",
|
|
3360
|
+
"text": "channel"
|
|
3361
|
+
}
|
|
3362
|
+
]
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"tag": "@requiredField",
|
|
3366
|
+
"content": [
|
|
3367
|
+
{
|
|
3368
|
+
"kind": "text",
|
|
3369
|
+
"text": "messageHandler"
|
|
3370
|
+
}
|
|
3371
|
+
]
|
|
3511
3372
|
}
|
|
3512
3373
|
]
|
|
3513
3374
|
},
|
|
3514
3375
|
"parameters": [
|
|
3515
3376
|
{
|
|
3516
|
-
"id":
|
|
3517
|
-
"name": "
|
|
3377
|
+
"id": 114,
|
|
3378
|
+
"name": "channel",
|
|
3518
3379
|
"variant": "param",
|
|
3519
3380
|
"kind": 32768,
|
|
3520
3381
|
"flags": {},
|
|
@@ -3522,20 +3383,20 @@
|
|
|
3522
3383
|
"summary": [
|
|
3523
3384
|
{
|
|
3524
3385
|
"kind": "text",
|
|
3525
|
-
"text": "
|
|
3386
|
+
"text": "Channel and resource to subscribe to."
|
|
3526
3387
|
}
|
|
3527
3388
|
]
|
|
3528
3389
|
},
|
|
3529
3390
|
"type": {
|
|
3530
3391
|
"type": "reference",
|
|
3531
|
-
"target":
|
|
3532
|
-
"name": "
|
|
3392
|
+
"target": 63,
|
|
3393
|
+
"name": "SubscribeChannel",
|
|
3533
3394
|
"package": "@wix/realtime-common"
|
|
3534
3395
|
}
|
|
3535
3396
|
},
|
|
3536
3397
|
{
|
|
3537
|
-
"id":
|
|
3538
|
-
"name": "
|
|
3398
|
+
"id": 115,
|
|
3399
|
+
"name": "messageHandler",
|
|
3539
3400
|
"variant": "param",
|
|
3540
3401
|
"kind": 32768,
|
|
3541
3402
|
"flags": {},
|
|
@@ -3543,73 +3404,162 @@
|
|
|
3543
3404
|
"summary": [
|
|
3544
3405
|
{
|
|
3545
3406
|
"kind": "text",
|
|
3546
|
-
"text": "
|
|
3407
|
+
"text": "Handler that runs whenever a message is published to the channel or resource."
|
|
3547
3408
|
}
|
|
3548
3409
|
]
|
|
3549
3410
|
},
|
|
3550
3411
|
"type": {
|
|
3551
3412
|
"type": "reference",
|
|
3552
|
-
"target":
|
|
3553
|
-
"name": "
|
|
3413
|
+
"target": 70,
|
|
3414
|
+
"name": "MessageHandler",
|
|
3415
|
+
"package": "@wix/realtime-common"
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"id": 116,
|
|
3420
|
+
"name": "options",
|
|
3421
|
+
"variant": "param",
|
|
3422
|
+
"kind": 32768,
|
|
3423
|
+
"flags": {
|
|
3424
|
+
"isOptional": true
|
|
3425
|
+
},
|
|
3426
|
+
"comment": {
|
|
3427
|
+
"summary": [
|
|
3428
|
+
{
|
|
3429
|
+
"kind": "text",
|
|
3430
|
+
"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."
|
|
3431
|
+
}
|
|
3432
|
+
]
|
|
3433
|
+
},
|
|
3434
|
+
"type": {
|
|
3435
|
+
"type": "reference",
|
|
3436
|
+
"target": 87,
|
|
3437
|
+
"name": "SubscriptionOptions",
|
|
3554
3438
|
"package": "@wix/realtime-common"
|
|
3555
3439
|
}
|
|
3556
3440
|
}
|
|
3557
3441
|
],
|
|
3558
3442
|
"type": {
|
|
3559
3443
|
"type": "intrinsic",
|
|
3560
|
-
"name": "
|
|
3444
|
+
"name": "string"
|
|
3445
|
+
}
|
|
3446
|
+
},
|
|
3447
|
+
{
|
|
3448
|
+
"id": 117,
|
|
3449
|
+
"name": "subscribe",
|
|
3450
|
+
"variant": "signature",
|
|
3451
|
+
"kind": 4096,
|
|
3452
|
+
"flags": {},
|
|
3453
|
+
"comment": {
|
|
3454
|
+
"summary": [
|
|
3455
|
+
{
|
|
3456
|
+
"kind": "text",
|
|
3457
|
+
"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 "
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"kind": "code",
|
|
3461
|
+
"text": "`options`"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"kind": "text",
|
|
3465
|
+
"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 "
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"kind": "code",
|
|
3469
|
+
"text": "`onSubscribed()`"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
"kind": "text",
|
|
3473
|
+
"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)."
|
|
3474
|
+
}
|
|
3475
|
+
],
|
|
3476
|
+
"blockTags": [
|
|
3477
|
+
{
|
|
3478
|
+
"tag": "@example",
|
|
3479
|
+
"content": [
|
|
3480
|
+
{
|
|
3481
|
+
"kind": "text",
|
|
3482
|
+
"text": "Subscribe to a channel\n"
|
|
3483
|
+
},
|
|
3484
|
+
{
|
|
3485
|
+
"kind": "code",
|
|
3486
|
+
"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```"
|
|
3487
|
+
}
|
|
3488
|
+
]
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"tag": "@example",
|
|
3492
|
+
"content": [
|
|
3493
|
+
{
|
|
3494
|
+
"kind": "text",
|
|
3495
|
+
"text": "Subscribe to a channel: Self-hosted\n"
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
"kind": "code",
|
|
3499
|
+
"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```"
|
|
3500
|
+
}
|
|
3501
|
+
]
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"tag": "@requiredField",
|
|
3505
|
+
"content": [
|
|
3506
|
+
{
|
|
3507
|
+
"kind": "text",
|
|
3508
|
+
"text": "channel"
|
|
3509
|
+
}
|
|
3510
|
+
]
|
|
3511
|
+
},
|
|
3512
|
+
{
|
|
3513
|
+
"tag": "@requiredField",
|
|
3514
|
+
"content": [
|
|
3515
|
+
{
|
|
3516
|
+
"kind": "text",
|
|
3517
|
+
"text": "messageHandler"
|
|
3518
|
+
}
|
|
3519
|
+
]
|
|
3520
|
+
}
|
|
3521
|
+
]
|
|
3522
|
+
},
|
|
3523
|
+
"parameters": [
|
|
3524
|
+
{
|
|
3525
|
+
"id": 118,
|
|
3526
|
+
"name": "httpClient",
|
|
3527
|
+
"variant": "param",
|
|
3528
|
+
"kind": 32768,
|
|
3529
|
+
"flags": {},
|
|
3530
|
+
"type": {
|
|
3531
|
+
"type": "reference",
|
|
3532
|
+
"target": {
|
|
3533
|
+
"sourceFileName": "../../node_modules/@wix/sdk-types/build/index.d.ts",
|
|
3534
|
+
"qualifiedName": "HttpClient"
|
|
3535
|
+
},
|
|
3536
|
+
"name": "HttpClient",
|
|
3537
|
+
"package": "@wix/sdk-types"
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
],
|
|
3541
|
+
"type": {
|
|
3542
|
+
"type": "reference",
|
|
3543
|
+
"target": {
|
|
3544
|
+
"sourceFileName": "src/subscriber/subscriber.public.ts",
|
|
3545
|
+
"qualifiedName": "SubscribeSignature"
|
|
3546
|
+
},
|
|
3547
|
+
"name": "SubscribeSignature",
|
|
3548
|
+
"package": "@wix/realtime"
|
|
3561
3549
|
}
|
|
3562
3550
|
}
|
|
3563
3551
|
]
|
|
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": [
|
|
3552
|
+
},
|
|
3588
3553
|
{
|
|
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",
|
|
3554
|
+
"id": 119,
|
|
3555
|
+
"name": "unsubscribe",
|
|
3606
3556
|
"variant": "declaration",
|
|
3607
|
-
"kind":
|
|
3557
|
+
"kind": 64,
|
|
3608
3558
|
"flags": {},
|
|
3609
3559
|
"signatures": [
|
|
3610
3560
|
{
|
|
3611
|
-
"id":
|
|
3612
|
-
"name": "
|
|
3561
|
+
"id": 120,
|
|
3562
|
+
"name": "unsubscribe",
|
|
3613
3563
|
"variant": "signature",
|
|
3614
3564
|
"kind": 4096,
|
|
3615
3565
|
"flags": {},
|
|
@@ -3617,35 +3567,67 @@
|
|
|
3617
3567
|
"summary": [
|
|
3618
3568
|
{
|
|
3619
3569
|
"kind": "text",
|
|
3620
|
-
"text": "
|
|
3570
|
+
"text": "Removes 1 or more subscriptions.\n\nYou can unsubscribe in 3 ways:\n- By "
|
|
3571
|
+
},
|
|
3572
|
+
{
|
|
3573
|
+
"kind": "code",
|
|
3574
|
+
"text": "`subscriptionId`"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"kind": "text",
|
|
3578
|
+
"text": ": removes a single subscription.\n- By "
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
"kind": "code",
|
|
3582
|
+
"text": "`channel`"
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"kind": "text",
|
|
3586
|
+
"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
3587
|
}
|
|
3622
|
-
]
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
"name": "error",
|
|
3628
|
-
"variant": "param",
|
|
3629
|
-
"kind": 32768,
|
|
3630
|
-
"flags": {},
|
|
3631
|
-
"comment": {
|
|
3632
|
-
"summary": [
|
|
3588
|
+
],
|
|
3589
|
+
"blockTags": [
|
|
3590
|
+
{
|
|
3591
|
+
"tag": "@example",
|
|
3592
|
+
"content": [
|
|
3633
3593
|
{
|
|
3634
3594
|
"kind": "text",
|
|
3635
|
-
"text": "
|
|
3595
|
+
"text": "Remove the specified subscription.\n"
|
|
3596
|
+
},
|
|
3597
|
+
{
|
|
3598
|
+
"kind": "code",
|
|
3599
|
+
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nsubscriber.unsubscribe({ subscriptionId });\n```"
|
|
3636
3600
|
}
|
|
3637
3601
|
]
|
|
3638
3602
|
},
|
|
3639
|
-
|
|
3640
|
-
"
|
|
3641
|
-
"
|
|
3642
|
-
|
|
3643
|
-
|
|
3603
|
+
{
|
|
3604
|
+
"tag": "@example",
|
|
3605
|
+
"content": [
|
|
3606
|
+
{
|
|
3607
|
+
"kind": "text",
|
|
3608
|
+
"text": "Remove the specified subscription: Self-hosted\n"
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
"kind": "code",
|
|
3612
|
+
"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```"
|
|
3613
|
+
}
|
|
3614
|
+
]
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
"tag": "@requiredField",
|
|
3618
|
+
"content": [
|
|
3619
|
+
{
|
|
3620
|
+
"kind": "text",
|
|
3621
|
+
"text": "options"
|
|
3622
|
+
}
|
|
3623
|
+
]
|
|
3644
3624
|
}
|
|
3645
|
-
|
|
3625
|
+
]
|
|
3626
|
+
},
|
|
3627
|
+
"parameters": [
|
|
3646
3628
|
{
|
|
3647
|
-
"id":
|
|
3648
|
-
"name": "
|
|
3629
|
+
"id": 121,
|
|
3630
|
+
"name": "options",
|
|
3649
3631
|
"variant": "param",
|
|
3650
3632
|
"kind": 32768,
|
|
3651
3633
|
"flags": {},
|
|
@@ -3653,13 +3635,31 @@
|
|
|
3653
3635
|
"summary": [
|
|
3654
3636
|
{
|
|
3655
3637
|
"kind": "text",
|
|
3656
|
-
"text": "
|
|
3638
|
+
"text": "Unsubscribe details. You must specify "
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"kind": "code",
|
|
3642
|
+
"text": "`channel`"
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"kind": "text",
|
|
3646
|
+
"text": ", "
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"kind": "code",
|
|
3650
|
+
"text": "`subscriptionId`"
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"kind": "text",
|
|
3654
|
+
"text": ", or both."
|
|
3657
3655
|
}
|
|
3658
3656
|
]
|
|
3659
3657
|
},
|
|
3660
3658
|
"type": {
|
|
3661
|
-
"type": "
|
|
3662
|
-
"
|
|
3659
|
+
"type": "reference",
|
|
3660
|
+
"target": 90,
|
|
3661
|
+
"name": "UnsubscribeOptions",
|
|
3662
|
+
"package": "@wix/realtime-common"
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
3665
|
],
|
|
@@ -3667,29 +3667,10 @@
|
|
|
3667
3667
|
"type": "intrinsic",
|
|
3668
3668
|
"name": "void"
|
|
3669
3669
|
}
|
|
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": [
|
|
3670
|
+
},
|
|
3690
3671
|
{
|
|
3691
|
-
"id":
|
|
3692
|
-
"name": "
|
|
3672
|
+
"id": 122,
|
|
3673
|
+
"name": "unsubscribe",
|
|
3693
3674
|
"variant": "signature",
|
|
3694
3675
|
"kind": 4096,
|
|
3695
3676
|
"flags": {},
|
|
@@ -3697,66 +3678,133 @@
|
|
|
3697
3678
|
"summary": [
|
|
3698
3679
|
{
|
|
3699
3680
|
"kind": "text",
|
|
3700
|
-
"text": "
|
|
3681
|
+
"text": "Removes 1 or more subscriptions.\n\nYou can unsubscribe in 3 ways:\n- By "
|
|
3701
3682
|
},
|
|
3702
3683
|
{
|
|
3703
3684
|
"kind": "code",
|
|
3704
|
-
"text": "`
|
|
3685
|
+
"text": "`subscriptionId`"
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
"kind": "text",
|
|
3689
|
+
"text": ": removes a single subscription.\n- By "
|
|
3690
|
+
},
|
|
3691
|
+
{
|
|
3692
|
+
"kind": "code",
|
|
3693
|
+
"text": "`channel`"
|
|
3705
3694
|
},
|
|
3706
3695
|
{
|
|
3707
3696
|
"kind": "text",
|
|
3708
|
-
"text": "
|
|
3697
|
+
"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
3698
|
}
|
|
3710
|
-
]
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
"name": "subscriptionId",
|
|
3716
|
-
"variant": "param",
|
|
3717
|
-
"kind": 32768,
|
|
3718
|
-
"flags": {},
|
|
3719
|
-
"comment": {
|
|
3720
|
-
"summary": [
|
|
3699
|
+
],
|
|
3700
|
+
"blockTags": [
|
|
3701
|
+
{
|
|
3702
|
+
"tag": "@example",
|
|
3703
|
+
"content": [
|
|
3721
3704
|
{
|
|
3722
3705
|
"kind": "text",
|
|
3723
|
-
"text": "
|
|
3706
|
+
"text": "Remove the specified subscription.\n"
|
|
3707
|
+
},
|
|
3708
|
+
{
|
|
3709
|
+
"kind": "code",
|
|
3710
|
+
"text": "```ts\nimport { subscriber } from '@wix/realtime';\n\nsubscriber.unsubscribe({ subscriptionId });\n```"
|
|
3724
3711
|
}
|
|
3725
3712
|
]
|
|
3726
3713
|
},
|
|
3727
|
-
|
|
3728
|
-
"
|
|
3729
|
-
"
|
|
3730
|
-
}
|
|
3731
|
-
},
|
|
3732
|
-
{
|
|
3733
|
-
"id": 96,
|
|
3734
|
-
"name": "isSynced",
|
|
3735
|
-
"variant": "param",
|
|
3736
|
-
"kind": 32768,
|
|
3737
|
-
"flags": {},
|
|
3738
|
-
"comment": {
|
|
3739
|
-
"summary": [
|
|
3714
|
+
{
|
|
3715
|
+
"tag": "@example",
|
|
3716
|
+
"content": [
|
|
3740
3717
|
{
|
|
3741
3718
|
"kind": "text",
|
|
3742
|
-
"text": "
|
|
3719
|
+
"text": "Remove the specified subscription: Self-hosted\n"
|
|
3720
|
+
},
|
|
3721
|
+
{
|
|
3722
|
+
"kind": "code",
|
|
3723
|
+
"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
3724
|
}
|
|
3744
3725
|
]
|
|
3745
3726
|
},
|
|
3727
|
+
{
|
|
3728
|
+
"tag": "@requiredField",
|
|
3729
|
+
"content": [
|
|
3730
|
+
{
|
|
3731
|
+
"kind": "text",
|
|
3732
|
+
"text": "options"
|
|
3733
|
+
}
|
|
3734
|
+
]
|
|
3735
|
+
}
|
|
3736
|
+
]
|
|
3737
|
+
},
|
|
3738
|
+
"parameters": [
|
|
3739
|
+
{
|
|
3740
|
+
"id": 123,
|
|
3741
|
+
"name": "_",
|
|
3742
|
+
"variant": "param",
|
|
3743
|
+
"kind": 32768,
|
|
3744
|
+
"flags": {},
|
|
3746
3745
|
"type": {
|
|
3747
|
-
"type": "
|
|
3748
|
-
"
|
|
3746
|
+
"type": "reference",
|
|
3747
|
+
"target": {
|
|
3748
|
+
"sourceFileName": "../../node_modules/@wix/sdk-types/build/index.d.ts",
|
|
3749
|
+
"qualifiedName": "HttpClient"
|
|
3750
|
+
},
|
|
3751
|
+
"name": "HttpClient",
|
|
3752
|
+
"package": "@wix/sdk-types"
|
|
3749
3753
|
}
|
|
3750
3754
|
}
|
|
3751
3755
|
],
|
|
3752
3756
|
"type": {
|
|
3753
|
-
"type": "
|
|
3754
|
-
"
|
|
3757
|
+
"type": "reference",
|
|
3758
|
+
"target": {
|
|
3759
|
+
"sourceFileName": "src/subscriber/subscriber.public.ts",
|
|
3760
|
+
"qualifiedName": "UnsubscribeSignature"
|
|
3761
|
+
},
|
|
3762
|
+
"name": "UnsubscribeSignature",
|
|
3763
|
+
"package": "@wix/realtime"
|
|
3755
3764
|
}
|
|
3756
3765
|
}
|
|
3757
3766
|
]
|
|
3758
3767
|
}
|
|
3759
|
-
|
|
3768
|
+
],
|
|
3769
|
+
"groups": [
|
|
3770
|
+
{
|
|
3771
|
+
"title": "Enumerations",
|
|
3772
|
+
"children": [
|
|
3773
|
+
107
|
|
3774
|
+
]
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"title": "Classes",
|
|
3778
|
+
"children": [
|
|
3779
|
+
93
|
|
3780
|
+
]
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
"title": "Interfaces",
|
|
3784
|
+
"children": [
|
|
3785
|
+
67,
|
|
3786
|
+
75,
|
|
3787
|
+
63,
|
|
3788
|
+
87,
|
|
3789
|
+
90
|
|
3790
|
+
]
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
"title": "Type Aliases",
|
|
3794
|
+
"children": [
|
|
3795
|
+
70,
|
|
3796
|
+
82,
|
|
3797
|
+
77
|
|
3798
|
+
]
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"title": "Functions",
|
|
3802
|
+
"children": [
|
|
3803
|
+
112,
|
|
3804
|
+
119
|
|
3805
|
+
]
|
|
3806
|
+
}
|
|
3807
|
+
]
|
|
3760
3808
|
}
|
|
3761
3809
|
],
|
|
3762
3810
|
"groups": [
|
|
@@ -3765,38 +3813,7 @@
|
|
|
3765
3813
|
"children": [
|
|
3766
3814
|
52,
|
|
3767
3815
|
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
|
|
3816
|
+
62
|
|
3800
3817
|
]
|
|
3801
3818
|
}
|
|
3802
3819
|
],
|