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. |