Connection 类
🌐 Connection class
语法
🌐 Signature
export declare class Connection extends EventEmitter<CDPSessionEvents>
Extends: EventEmitter<CDPSessionEvents>
构造函数
🌐 Constructors
构造函数 🌐 Constructor | 修饰符 🌐 Modifiers | 描述 🌐 Description |
|---|---|---|
| (constructor)(url, transport, delay, timeout, rawErrors, idGenerator) | 构造 🌐 Constructs a new instance of the |
属性
🌐 Properties
属性 🌐 Property | 修饰符 🌐 Modifiers | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|---|
| timeout |
| number |
方法
🌐 Methods
方法 🌐 Method | 修饰符 🌐 Modifiers | 描述 🌐 Description |
|---|---|---|
| createSession(targetInfo) | ||
| dispose() | ||
| fromSession(session) |
| |
| send(method, params, options) | ||
| session(sessionId) | ||
| url() |