跳到主要内容

Tethering🧪

Tethering 域定义了用于浏览器端口绑定的方法和事件。

EN
The Tethering domain defines methods and events for browser port binding.

✅️️ Methods

🔨Tethering.bind

请求浏览器端口绑定。

EN
Request browser port binding.
参数必填标记类型描述原文
port✔️integer绑定端口号。
ENPort number to bind.

🔨Tethering.unbind

请求浏览器端口解绑。

EN
Request browser port unbinding.
参数必填标记类型描述原文
port✔️integer要解绑的端口号。
ENPort number to unbind.

✅️️ Events

👋Tethering.accepted

通知端口已成功绑定并获得了指定的连接ID。

EN
Informs that port was successfully bound and got a specified connection id.
参数必填标记类型描述原文
port✔️integer成功绑定的端口号。
ENPort number that was successfully bound.
connectionId✔️string要使用的连接ID。
ENConnection id to be used.