Skip to main content

Connection 类

🌐 Connection class

语法​

🌐 Signature

export declare class Connection extends EventEmitter<CDPSessionEvents>

Extends: EventEmitter<CDPSessionEvents>

附注​

🌐 Remarks

这个类的构造函数被标记为内部的。第三方代码不应该直接调用这个构造函数,也不应该创建继承 Connection 类的子类。

🌐 The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Connection class.

属性​

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

timeout

readonly

number

方法​

🌐 Methods

方法

🌐 Method

修饰符

🌐 Modifiers

描述

🌐 Description

createSession(targetInfo)

dispose()

fromSession(session)

static

send(method, params, options)

session(sessionId)

url()