You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same as the one shown in the Chromium Network tab, a button to pause or continue logging the requests (IPC messages for this).
When logging is active (recording), it's shown as the red circumference with a red square in the middle. Clicking it will set it in pause. Title string when hovered should read Stop recording IPC messages.
When logging is not active (paused), it's shown as the grey circumference with a grey squared in the middle. Clicking it will restart the logging. Title string when hovered should read Record IPC messages.
Considerations:
Should it be responsibility of the UI or the main process?
The main process still listen to the messages and send them to the UI. The UI is the only one knowing that is "paused"? Meaning is the UI the one that will "drop" the messages.
The main process listens to the messages but drops them (not sending them to the UI) when paused. UI will log everything that it receives. This also implies that the UI needs to notify the main process when the button is clicked, so the main process knows what to do.
The main process de-register listeners completely when paused, and register them again when un-paused (probably too much work for just this).
Should the custom callback onIpcMessage be called when paused? (if provided)
No, because pause affects everything
Yes, up to the callback to do whatever they want with them.
Call always onIpcMessage but add a new field or a new parameter isPaused.
The text was updated successfully, but these errors were encountered:
Same as the one shown in the Chromium Network tab, a button to pause or continue logging the requests (IPC messages for this).
Stop recording IPC messages
.Record IPC messages
.Considerations:
onIpcMessage
be called when paused? (if provided)onIpcMessage
but add a new field or a new parameterisPaused
.The text was updated successfully, but these errors were encountered: