开发者

Detect FlexClient disconnect on Longpolling Channel

开发者 https://www.devze.com 2023-02-06 16:02 出处:网络
I\'m developing a chat system and i need to detect the FlexClient disconnect in Java, using the longpolling channel.

I'm developing a chat system and i need to detect the FlexClient disconnect in Java, using the longpolling channel.

I can't use the Streaming channel, because of some bugs that this kind of channel still has. Do you have any suggestion on how could i accomplish this? I'm usin开发者_开发技巧g BlazeDS.

Regards.


There is no way to detect a client disconnect in real time unless using an RMTP channel which is using behind a socket. When using different channels you can do some workarounds like having some javascript in your web detecting the page unload event, or you can have your client using some kind of heart bit mechanism.

0

精彩评论

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