- Preparing search index...
- The search index is not available
biorate
Properties
addListener
Type declaration
-
- <T>(event, listener): CDPSession
-
Type Parameters
-
T extends symbol | keyof Events
Parameters
-
event: T
-
listener: ((payload) => void)
-
- (payload): void
-
Parameters
-
payload: T extends symbol
? any
: Events[T extends keyof Events
? T
: never]
Returns void
off
Type declaration
-
- <T>(event, listener): CDPSession
-
Type Parameters
-
T extends symbol | keyof Events
Parameters
-
event: T
-
listener: ((payload) => void)
-
- (payload): void
-
Parameters
-
payload: T extends symbol
? any
: Events[T extends keyof Events
? T
: never]
Returns void
on
Type declaration
-
- <T>(event, listener): CDPSession
-
Type Parameters
-
T extends symbol | keyof Events
Parameters
-
event: T
-
listener: ((payload) => void)
-
- (payload): void
-
Parameters
-
payload: T extends symbol
? any
: Events[T extends keyof Events
? T
: never]
Returns void
once
Type declaration
-
- <T>(event, listener): CDPSession
-
Type Parameters
-
T extends symbol | keyof Events
Parameters
-
event: T
-
listener: ((payload) => void)
-
- (payload): void
-
Parameters
-
payload: T extends symbol
? any
: Events[T extends keyof Events
? T
: never]
Returns void
removeListener
removeListener: (<T>(event,
listener) => CDPSession)
Type declaration
-
- <T>(event, listener): CDPSession
-
Type Parameters
-
T extends symbol | keyof Events
Parameters
-
event: T
-
listener: ((payload) => void)
-
- (payload): void
-
Parameters
-
payload: T extends symbol
? any
: Events[T extends keyof Events
? T
: never]
Returns void
Methods
detach
- detach(): Promise<void>
-
Returns Promise<void>
send
- send<T>(method, params?): Promise<CommandReturnValues[T]>
-
Type Parameters
-
T extends keyof CommandParameters
Parameters
-
method: T
-
Optional
params: CommandParameters[T]
Optional
Returns Promise<CommandReturnValues[T]>
The
CDPSession
instances are used to talk raw Chrome Devtools Protocol:session.send
method.session.on
method.Useful links: