sendObjectMessage questions
Posted: 15 Jul 2011, 00:53
Its behaviour a bit inconsistent; in a handler it seems to not send the object message back to the sender. If it's called in a separate thread however, the sender does seem to get the message as well.
Also, is there some way to mimic having a null sender for the cases where the message originates from the server, without having to do something like:
instead of just:
which is much easier to read and works even if the room is empty?
Also, is there some way to mimic having a null sender for the cases where the message originates from the server, without having to do something like:
Code: Select all
if( getRoom().getUserList().size() > 0 )
{
sendObjectMessage( room, room.getUserList()[0], sfsobject, room.getUserList() )
}
Code: Select all
sendObjectMessage( room, null, sfsobject );