I have a ServerEventHandler that catch the USER_DISCONNECT event like the following code:
Code: Select all
public void handleServerEvent(ISFSEvent event) throws SFSException {
User user = (User) event.getParameter(SFSEventParam.USER);
List<Room> joinedRooms = (List<Room>) event.getParameter(SFSEventParam.JOINED_ROOMS);
}
The problem is I get the user variable null sometime.
Thanks,