Skip to content

Commit

Permalink
[Main][Task] 28050373: Expose Offline Support SendNextBatch function (#…
Browse files Browse the repository at this point in the history
…2357)

* expose send next batch

* update
  • Loading branch information
Karlie-777 committed May 30, 2024
1 parent 767790b commit 07a6eaa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions channels/offline-channel-js/src/OfflineChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
}
}

0 comments on commit 07a6eaa

Please sign in to comment.