WEB_SOCKET_DEBUG = true;
WEB_SOCKET_FORCE_FLASH = true;
...
var s = new WebSocket(url);
s.onerror = function (error) {
console.log('WebSocket.onerror');
};
s.onclose = function () {
//This will not be called if an error occurs
console.log('WebSocket.onclose');
};
After short period of inactivity ~1min and right after s.send(...):
[WebSocket] Error while sending frame: Error #2002: Operation attempted on invalid socket.
logger.error(decodeURIComponent(message));
[WebSocket] closed
WebSocket.onerror
After short period of inactivity ~1min and right after
s.send(...)
: