eda_sys_web_socket_close
Closes an active WebSocket connection in the EDA window. Specify the connection ID and optional code/reason to terminate it.
Instructions
sys_WebSocket.close(id: string, code?: number, reason?: string, extensionUuid?: string) -> void
关闭 WebSocket 连接
remarks: 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 throw Error
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |