I implemented websocket by using java in server side. In client I created websocket object, and I have my own function for all the events including onClose. I tested reconnection... websocket in chrome 26, Mozilla both windows and chrome.
Chrome in windows triggers onclose event when I plugged out the network cable (i.e onclose
triggers with closecode 1006 [abnormaly closed]
as mentioned in https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent) but Chrome in linux does not trigger any event.
Please suggest what mistake I did.
My exact question is why chrome in windows triggers onclose
when network is disconnected, but in case of linux, it is not triggered.