@base-framework/base 3.0.507 → 3.0.509
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/copilot.md +481 -97
- package/dist/base.js +1 -1
- package/dist/base.js.map +3 -3
- package/dist/types/modules/data/types/model/model-service.d.ts +11 -0
- package/package.json +1 -1
|
@@ -176,6 +176,17 @@ export class ModelService {
|
|
|
176
176
|
* @returns {XMLHttpRequest}
|
|
177
177
|
*/
|
|
178
178
|
protected setupRequest(url: string, method: string, params: (string | object), callBack: Function, requestCallBack?: Function): XMLHttpRequest;
|
|
179
|
+
/**
|
|
180
|
+
* Set up an EventSource for real-time activity updates with auto-reconnection.
|
|
181
|
+
*
|
|
182
|
+
* @param {string} url - The URL path relative to the model's base URL.
|
|
183
|
+
* @param {string} params - The query parameters.
|
|
184
|
+
* @param {function} callBack - The callback function for incoming updates.
|
|
185
|
+
* @param {function|null} onOpenCallBack - Optional callback when connection opens.
|
|
186
|
+
* @param {boolean} [reconnect=true] - Whether to auto-reconnect on disconnection.
|
|
187
|
+
* @returns {object} Object with source and cleanup function
|
|
188
|
+
*/
|
|
189
|
+
setupEventSource(url: string, params: string, callBack: Function, onOpenCallBack: Function | null, reconnect?: boolean): object;
|
|
179
190
|
/**
|
|
180
191
|
* This will replace the url params with the model data.
|
|
181
192
|
*
|