Event Coordination
Event coordination allows you to send real-time messages between external systems and active browser instances. This is particularly useful for multi-factor authentication (MFA) where you need to inject authentication codes during browser automation.Overview
The system provides two operations:- Signal Event: Send data to an event channel
- Wait for Event: Listen for data on an event channel with timeout
MFA Use Case
Handle MFA codes during automated login flows:Implementation
Helper Functions
Event Flow Patterns
Signal First, Wait Later (immediate consumption):Best Practices
- Use descriptive event names:
mfa_code_login
,mfa_code_transfer
- Always set appropriate timeouts
- Validate received event data
- Handle timeout scenarios gracefully