@sockethub/client 5.0.0-beta.0 → 5.0.0-beta.1
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 +8 -0
- package/dist/sockethub-client.browser.js +152 -25
- package/dist/sockethub-client.d.ts +7 -0
- package/dist/sockethub-client.js +152 -25
- package/dist/sockethub-client.min.js +13 -13
- package/package.json +3 -3
|
@@ -14,6 +14,13 @@ export interface SockethubClientOptions {
|
|
|
14
14
|
initTimeoutMs?: number;
|
|
15
15
|
maxQueuedOutbound?: number;
|
|
16
16
|
maxQueuedAgeMs?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Client-side schema validation. `"auto"` (default) validates with Ajv when
|
|
19
|
+
* the environment allows code generation; environments that forbid it (a
|
|
20
|
+
* browser-extension CSP) skip validation automatically. `"off"` always
|
|
21
|
+
* skips it. The server validates every message regardless.
|
|
22
|
+
*/
|
|
23
|
+
validation?: "auto" | "off";
|
|
17
24
|
}
|
|
18
25
|
export interface ConnectOptions extends SockethubClientOptions, DiscoverOptions {
|
|
19
26
|
/**
|