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.
精彩评论