gautamaino / gwteventservice

Automatically exported from code.google.com/p/gwteventservice
Other
0 stars 0 forks source link

Unlisten listener doesn't fire when a client connection lost . #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hi,
 According to manual of the GWTEventService 1.2.1 :
I have to register an unlisten listener with the local scope, if i'd like to be 
noticed when the client connection is lost.

Therefore i have registered the unlisten listener as follow :

RemoteEventService remoteEventService = 
RemoteEventServiceFactory.getInstance().getRemoteEventService();
remoteEventService.addUnlistenListener(UnlistenEventListener.Scope.LOCAL, new 
UnlistenEventListenerAdapter() 
{
    public void onUnlisten(UnlistenEvent unlistenEvent) 
    {                               
    reconnect();
    }
}, null);

public void reconnect() 
{
   ...
   do something
   ...
}

But, the unlistenListener doesn't fire when i disconnect my network connection 
and i don't know what is the problem .

Original issue reported on code.google.com by somi.kho...@gmail.com on 3 Jul 2013 at 10:17

GoogleCodeExporter commented 8 years ago
hi again,
 I noticed that, The registered unlisten listener with the local scope won’t fire, 
 if the connection strategy is Streaming.

 Is it correct or not ? if yes, what is the solution ?

Original comment by somi.kho...@gmail.com on 6 Jul 2013 at 10:14