fun <R> catchOutbound(catchingType: WebBrowser.CatcherType, f: () -> R): Pair<List<FunctionCall>, R>

Execute a block of code in which any JavaScript sent to the browser during the execution of the block will be stored and returned by this function.

The main use-case is recording changes made to the DOM within an onImmediate event callback so that these can be replayed in the browser when an event is triggered without a server round-trip.