@sanity/client 6.28.4-resources.4 → 6.28.5-goaway.0
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/README.md +1 -0
- package/dist/index.browser.cjs +2 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +12 -0
- package/dist/index.browser.d.ts +12 -0
- package/dist/index.browser.js +2 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +12 -0
- package/dist/stega.browser.d.ts +12 -0
- package/dist/stega.d.cts +12 -0
- package/dist/stega.d.ts +12 -0
- package/package.json +15 -15
- package/src/data/dataMethods.ts +29 -33
- package/src/data/live.ts +3 -1
- package/src/types.ts +16 -1
- package/umd/sanityClient.js +2 -1
- package/umd/sanityClient.min.js +1 -1
package/README.md
CHANGED
|
@@ -1003,6 +1003,7 @@ The method will emit different types of events:
|
|
|
1003
1003
|
- `message`: Regular event messages.
|
|
1004
1004
|
- `restart`: Emitted when the event stream restarts.
|
|
1005
1005
|
- `reconnect`: Emitted when the client reconnects to the event stream.
|
|
1006
|
+
- `goaway`: Emitted when when the connection is rejected or had to be closed, eg. if connection limits are reached and the client should switch data fetching strategy from live to polling.
|
|
1006
1007
|
- `welcome`: Emitted when the client successfully connects to the event stream.
|
|
1007
1008
|
|
|
1008
1009
|
To listen to updates in draft content, set `includeDrafts` to `true`
|