@kadi.build/core 0.15.5 → 0.15.6

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/src/types.ts CHANGED
@@ -79,17 +79,23 @@ export interface ClientConfig {
79
79
 
80
80
  /**
81
81
  * Named brokers to connect to.
82
- * Keys are friendly names, values are BrokerEntry objects.
82
+ * Keys are friendly names, values are BrokerEntry objects or plain URL strings.
83
+ *
84
+ * String form is shorthand that joins all networks (defaults to ['global']).
85
+ * Both forms can be mixed in the same config.
83
86
  *
84
87
  * @example
85
88
  * ```typescript
86
89
  * brokers: {
90
+ * // Object form (explicit network scoping)
87
91
  * local: { url: 'ws://localhost:8080/kadi', networks: ['private'] },
88
92
  * remote: { url: 'wss://remote/kadi', networks: ['public'] },
93
+ * // String form (shorthand, joins default networks)
94
+ * dev: 'ws://localhost:9090/kadi',
89
95
  * }
90
96
  * ```
91
97
  */
92
- brokers?: Record<string, BrokerEntry>;
98
+ brokers?: Record<string, string | BrokerEntry>;
93
99
 
94
100
  /**
95
101
  * Which broker to use by default for invokeRemote() and loadBroker().