Emitted when the session is closed, either because the target was closed or session.detach() was called.
Emitted for every CDP event received from the session. Allows subscribing to all CDP events at once without knowing their names ahead of time.
Usage
session.on('event', ({ method, params }) => {
console.log(`CDP event: ${method}`, params);
});
Detaches the CDPSession from the target. Once detached, the CDPSession object won't emit any events and can't be used to send messages.
Removes an event listener added by on or addListener.
Removes an event listener added by on or addListener.
Emitted when the session is closed, either because the target was closed or session.detach() was called.
Emitted for every CDP event received from the session. Allows subscribing to all CDP events at once without knowing their names ahead of time.
Usage
session.on('event', ({ method, params }) => {
console.log(`CDP event: ${method}`, params);
});
Adds an event listener that will be automatically removed after it is triggered once. See addListener for more information about this event.
Adds an event listener that will be automatically removed after it is triggered once. See addListener for more information about this event.
Emitted when the session is closed, either because the target was closed or session.detach() was called.
Emitted for every CDP event received from the session. Allows subscribing to all CDP events at once without knowing their names ahead of time.
Usage
session.on('event', ({ method, params }) => {
console.log(`CDP event: ${method}`, params);
});
Removes an event listener added by on or addListener.
Removes an event listener added by on or addListener.
The
CDPSessioninstances are used to talk raw Chrome Devtools Protocol:session.sendmethod.session.onmethod.Useful links: