WebSocket 断开时,会触发 CloseEvent , CloseEvent会在连接关闭时发送给使用WebSockets 的客户端. 它在WebSocket 对象的onclose 事件监听器中使用。
確定! 回上一頁