onDisconnect not call on Chrome is closed, but firefox and IE are OK

135 views
Skip to first unread message

joingame

unread,
Oct 2, 2012, 10:04:22 PM10/2/12
to openrtmf...@googlegroups.com

onDisconnect not call when Chrome tabpage is closed, Chrome ver:22.0.1229.79 m (last version now) and others new version have this issue, but in 18...** old version is OK, firefox and IE are OK, i think this is a import issue, because Groups(game rooms) can't refresh for long time util server checked some clients were dead.

dm0

unread,
Mar 21, 2013, 12:19:27 PM3/21/13
to openrtmf...@googlegroups.com
Is there any workaround for this problem?

Patrick

unread,
Mar 30, 2013, 11:11:29 AM3/30/13
to openrtmf...@googlegroups.com
Clearly the browser isn't fully shutting down the connections before shutting down your code. I wouldn't rely on onDisconnect to detect browser closure (for obvious reasons), and instead would recommend the use of JavaScript:

window.onbeforeunload = function () {
   ///Do your stuff here
};

Regards,
Patrick

jiwa...@gmail.com

unread,
May 5, 2013, 6:28:16 AM5/5/13
to openrtmf...@googlegroups.com
It's difficult to resolve this problem. It's better to implement heart beaten function.
It's not problem of Cumulus. It's browser or flash client problem. Somtimes it will be worse if you instal flash record software in your browser.

在 2012年10月3日星期三UTC+8上午10时04分22秒,joingame写道:
Reply all
Reply to author
Forward
0 new messages