应用程序代码监听WebSocket对象上的事件,以便处理输入数据和连接状态改变。 ... close事件在WebSocket连接关闭时触发,对应于close事件的回调函数是onclose。
確定! 回上一頁