开发者

Unable to close WebSocket with JavaScript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜