PDA

View Full Version : sendQueuedPluginMessageToRoom?



yaure
02-03-2010, 01:16 PM
Hi

I'm trying to implement sendQueuedPluginMessageToRoom()

For sending normal plugin messages I use the zoneId and roomId


sendPluginMessageToRoom(int zoneId, int roomId, EsObjectRO variables)



But the queued message seem different... what exactly do I need to pass in? what is the messageName?


sendQueuedPluginMessageToRoom(String messageName, EsObjectRO variable)


thanks

tcarr
02-03-2010, 08:05 PM
Queued messaging only works from a room plugin attached to the room that the messages are sent to, so the roomId and zoneId are not needed. Full details are explained in Queued messages (http://www.es-wiki.com/index.php?title=Queued_messages).

yaure
02-03-2010, 09:19 PM
o, so it needs to be added to the room-level plugin
and each room plugin can have a getApi().startQueue(int);

thanks

tcarr
02-03-2010, 09:21 PM
Exactly!