开发者

Unable to close WebSocket with JavaScript

开发者 https://www.devze.com 2023-02-22 05:08 出处:网络
I am trying to close my websocket via: socket.close(); However I 开发者_如何学Cget the error on Safari 5.0.4:

I am trying to close my websocket via:

socket.close();

However I 开发者_如何学Cget the error on Safari 5.0.4:

TypeError: Result of expression 'socket.close' [undefined] is not a function.

How can I properly close my web socket?


socket.disconnect() worked. yay.

0

精彩评论

暂无评论...
验证码 换一张
取 消