On user logout, USER_LEAVE_ROOM client event is fired to each room, where the user was. However server event is not fired.
Is it a bug or a feature? If it's a feature, then can you explain why? Or is there any workaround for server event in this case?
If it's a bug, please fix it
Log for normal user leave room:
Code: Select all
15:34:34,660 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] managers.SFSRoomManager - User: account-1 removed from Room: game-1017
15:34:34,661 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] protocol.SFSProtocolCodec - {OUT}: OnUserExitRoom
15:34:34,662 DEBUG [com.smartfoxserver.v2.controllers.SystemController-1] binary.BinaryIoHandler - Binary size: 39
80 00 24 12 00 03 00 01 61 03 03 EC 00 01 63 02 ..$.....a.....c.
00 00 01 70 12 00 02 00 01 72 04 00 00 00 08 00 ...p.....r......
01 75 04 00 00 00 04 .u.....
15:34:34,664 TRACE [pool-1-thread-2] filter.LoggingFilter - Topic smartfox.USER_LEAVE_ROOM not found, skipping
15:34:34,666 DEBUG [pool-1-thread-2] event.RoomLeaveHandler - User ( User Name: account-1, Id: 4, Priv: 0, Sess: 192.168.1.33:51711 ) leaving room [ SFSGame: game-1017, Id: 8, Group: default, public: true, minPlayers: 2 ]
Code: Select all
15:32:32,207 DEBUG [com.smartfoxserver.v2.controllers.SystemController-3] managers.SFSRoomManager - User: account-1 removed from Room: place-153
15:32:32,207 DEBUG [com.smartfoxserver.v2.controllers.SystemController-3] managers.SFSRoomManager - User: account-1 removed from Room: game-1014
15:32:32,208 INFO [com.smartfoxserver.v2.controllers.SystemController-3] entities.SFSZone - User: account-1 was disconnected.
15:32:32,208 DEBUG [com.smartfoxserver.v2.controllers.SystemController-3] protocol.SFSProtocolCodec - {OUT}: OnUserLost
15:32:32,209 DEBUG [com.smartfoxserver.v2.controllers.SystemController-3] binary.BinaryIoHandler - Binary size: 31
80 00 1C 12 00 03 00 01 61 03 03 EA 00 01 63 02 ........a.....c.
00 00 01 70 12 00 01 00 01 75 04 00 00 00 02 ...p.....u.....
15:32:32,210 DEBUG [com.smartfoxserver.v2.controllers.SystemController-3] protocol.SFSProtocolCodec - {OUT}: Logout
15:32:32,212 DEBUG [com.smartfoxserver.v2.controllers.SystemController-3] binary.BinaryIoHandler - Binary size: 38
80 00 23 12 00 03 00 01 61 03 00 02 00 01 63 02 ..#.....a.....c.
00 00 01 70 12 00 01 00 02 7A 6E 08 00 08 4F 6E ...p.....zn...On
79 78 54 65 73 74 yxTest
15:32:32,213 TRACE [pool-1-thread-2] filter.LoggingFilter - Topic smartfox.USER_LOGOUT not found, skipping
15:32:32,214 TRACE [pool-1-thread-2] event.UserLogoutEventHandler - User 1 is logged out
15:32:32,215 INFO [com.smartfoxserver.v2.controllers.SystemController-3] api.SFSApi - User logout: ( User Name: account-1, Id: 2, Priv: 0, Sess: 192.168.1.33:51686 )
15:32:34,638 DEBUG [pool-2-thread-1]