Connection Managers
CommandsManager
pydoll.connection.managers.commands_manager.CommandsManager
Manages command lifecycle and ID assignment for CDP commands.
Handles command future creation, ID generation, and response resolution for asynchronous command execution.
Initialize command manager with empty state.
create_command_future
Create future for command and assign unique ID.
PARAMETER | DESCRIPTION |
---|---|
command
|
Command to prepare for execution.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Future
|
Future that resolves when command completes. |
EventsManager
pydoll.connection.managers.events_manager.EventsManager
Manages event callbacks, processing, and network logs.
Handles event callback registration, triggering, and maintains state for network logs and dialog information.
Initialize events manager with empty state.
register_callback
Register callback for specific event type.
PARAMETER | DESCRIPTION |
---|---|
event_name
|
Event name to listen for.
TYPE:
|
callback
|
Function called when event occurs.
TYPE:
|
temporary
|
If True, callback removed after first trigger.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
int
|
Callback ID for later removal. |