JavaScript SDK ⁠-⁠ 'forceFlushBatch' method

Forces tracker to flush the current batch of messages without waiting for completion. Useful when you need to close the tab/window after a session. This method also sends send a message to the webworker, which will start network request with the current batch of messages.

forceFlushBatch(): void