Can't catch user disconnection

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

miv
Posts: 8
Joined: 16 Jun 2014, 08:10

Can't catch user disconnection

Postby miv » 21 Jul 2014, 18:09

I'm trying to catch USER_DISCONECTED event on server but nothing happens. I see in logs:

Code: Select all

21 Jul 2014 | 17:15:00,426 | INFO  | SFSWorker:Sys:3 | v2.api.SFSApi |     | User disconnected: { Zone: TestZone }, ( User Name: test, Id: 11, Priv: 0, Sess: 6.6.6.6:58539 ) , SessionLen: 10144, Type: Unity

And accompanying Session removed log record, but my

Code: Select all

        addEventHandler(SFSEventType.USER_DISCONNECT , DisconnectEventHandler.class);


in my Zone extension receives nothing.

Thenk you.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Can't catch user disconnection

Postby rjgtav » 21 Jul 2014, 20:16

--- Moved to the correct forum section ---
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
miv
Posts: 8
Joined: 16 Jun 2014, 08:10

Re: Can't catch user disconnection

Postby miv » 22 Jul 2014, 07:19

I'm sorry, problem has been resolved. It works as expected.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Can't catch user disconnection

Postby rjgtav » 22 Jul 2014, 10:15

Can you tell us what was the issue?
It may help someone else in the future :wink:
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: LordDawn and 16 guests