From 07a6eaa1ea44e25b2ca751c2319755cb035c1a76 Mon Sep 17 00:00:00 2001 From: Karlie-777 <79606506+Karlie-777@users.noreply.github.com> Date: Thu, 30 May 2024 15:34:03 -0700 Subject: [PATCH] [Main][Task] 28050373: Expose Offline Support SendNextBatch function (#2357) * expose send next batch * update --- channels/offline-channel-js/src/OfflineChannel.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/channels/offline-channel-js/src/OfflineChannel.ts b/channels/offline-channel-js/src/OfflineChannel.ts index 28dba8828..cfb53ae41 100644 --- a/channels/offline-channel-js/src/OfflineChannel.ts +++ b/channels/offline-channel-js/src/OfflineChannel.ts @@ -248,6 +248,11 @@ export class OfflineChannel extends BaseTelemetryPlugin implements IChannelContr }; + _self.sendNextBatch = () => { + // TODO: add callback function + return _setSendNextTimer(); + }; + _self._doTeardown = (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => { _self.onunloadFlush(); _offlineListener && runTargetUnload(_offlineListener, false); @@ -740,4 +745,11 @@ export class OfflineChannel extends BaseTelemetryPlugin implements IChannelContr public onunloadFlush() { // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging } + + /** + * Flush the next stored event batch + */ + public sendNextBatch() { + // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging + } }