Skip to main content
Version: 24.38.0

Connection.session() 方法

🌐 Connection.session() method

语法

🌐 Signature

class Connection {
session(sessionId: string): CDPSession | null;
}

参数

🌐 Parameters

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

sessionId

string

会话 ID

🌐 The session id

返回:

CDPSession | null

当前 CDP 会话(如果存在)

🌐 The current CDP session if it exists