Search found 5 matches

by Majiy
12 Jan 2011, 08:47
Forum: SFS2X Questions
Topic: How to remove a user from a room using an extension?
Replies: 3
Views: 6182

Thank you, it´s working now.

It would be really helpful, especially for SFS beginners, if the JavaDoc for functions that are not meant to be used normally contained a notice like "Attention: you usually do not use this method, use method XXX in the class SFSApi instead".
by Majiy
11 Jan 2011, 15:03
Forum: SFS2X Questions
Topic: How to remove a user from a room using an extension?
Replies: 3
Views: 6182

How to remove a user from a room using an extension?

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 ...
by Majiy
11 Jan 2011, 12:46
Forum: SFS2X Questions
Topic: Room Extension and USER_VARIABLES_UPDATE Events
Replies: 15
Views: 21848

Sure helps, not at least I know that I didn´t mess up something :)

Is it documented somewhere, which kind events are fired to what type of extension? Didn´t find it in the Java Docs.
by Majiy
07 Jan 2011, 09:33
Forum: SFS2X Questions
Topic: Room Extension and USER_VARIABLES_UPDATE Events
Replies: 15
Views: 21848

Just did some more testing: The extension does catch SFSEventType.USER_JOIN_ROOM type events without a problem.

I would guess that no SFSEventType.USER_VARIABLES_UPDATE events are fired in the room at all, but the client catches them without a problem.

Tested this both on RC1A and RC1B, no ...
by Majiy
06 Jan 2011, 19:43
Forum: SFS2X Questions
Topic: Room Extension and USER_VARIABLES_UPDATE Events
Replies: 15
Views: 21848

Room Extension and USER_VARIABLES_UPDATE Events

I´m trying to write my first Extension right now. It is a Room Level Extension.

I successfully managed to register a request handler, and now I´m trying to implement an EventHandler, to listen to USER_VARIABLES_UPDATE events, but no luck so far.

The listener is registered in the following way ...