DevToolsLogicObserver
class DevToolsLogicObserver(clientId: String, scope: CoroutineScope, isConnected: () -> Boolean, shouldForward: () -> Boolean = { true }, sendMessage: suspend (DevToolsMessage) -> Unit) : LogicObserver(source)
Deprecated
DevToolsService forwards logic events from the session capture, in order. Nothing installs this observer any more.
LogicObserver implementation that forwards tracing events to DevTools.
This observer connects the LogicTracer (from reaktiv-core) with the DevTools infrastructure, enabling logic method traces to be displayed in the DevTools UI. Filtering of events is handled in the WASM UI, not here.
Parameters
clientId
Client identifier attached to each forwarded message
scope
CoroutineScope for async message sending
isConnected
Gate consulted before sending
sendMessage
Sink delivering the message over the active connection
Constructors
Link copied to clipboard
constructor(clientId: String, scope: CoroutineScope, isConnected: () -> Boolean, shouldForward: () -> Boolean = { true }, sendMessage: suspend (DevToolsMessage) -> Unit)