How to remove a user from a room using an extension?
Posted: 11 Jan 2011, 15:03
I´m looking for the "correct" way to remove a user from a room (while joinging another one, in case this matters) using an extension.
I know I can use the removeUser method (in the SFSRoom class), and it works, but it doesn´t seem to fire any of the events I would expect (SFSEvent.ROOM_JOIN or SFSEvent.USER_ENTER_ROOM). So I guess this is not the way this is supposed to be done.
I´ve been looking for a way to send a JoinRoomRequest from an extension, but it doesn´t seem to exist in the Java Api (or I didn´t find it).
Can somebody please give me a nodge to the right direction?
I know I can use the removeUser method (in the SFSRoom class), and it works, but it doesn´t seem to fire any of the events I would expect (SFSEvent.ROOM_JOIN or SFSEvent.USER_ENTER_ROOM). So I guess this is not the way this is supposed to be done.
I´ve been looking for a way to send a JoinRoomRequest from an extension, but it doesn´t seem to exist in the Java Api (or I didn´t find it).
Can somebody please give me a nodge to the right direction?