2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: CDPSession.send
|
|
|
|
---
|
|
|
|
|
|
|
|
# CDPSession.send() method
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class CDPSession {
|
2023-11-15 10:48:54 +00:00
|
|
|
abstract send<T extends keyof ProtocolMapping.Commands>(
|
2022-08-06 14:49:20 +00:00
|
|
|
method: T,
|
|
|
|
...paramArgs: ProtocolMapping.Commands[T]['paramsType']
|
|
|
|
): Promise<ProtocolMapping.Commands[T]['returnType']>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | --------------------------------------------- | ----------- |
|
|
|
|
| method | T | |
|
|
|
|
| paramArgs | ProtocolMapping.Commands\[T\]\['paramsType'\] | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<ProtocolMapping.Commands\[T\]\['returnType'\]>
|