Send to all in room AS extension
Posted: 10 Sep 2010, 17:50
Hi there,
I've written a function that most of my code depends on that sends a message to everyone in the room. Take a look:
Am I doing something incorrectly? I keep getting a method cannot be called on getAllUsers() on my object. Can't seem to find any samples that make use of the getAllUsers() method.
Thanks.
I've written a function that most of my code depends on that sends a message to everyone in the room. Take a look:
Code: Select all
function sendToRoom(resp, fromRoom, sender, recipients)
{
var room = _server.getCurrentRoom();
_server.sendResponse(resp, fromRoom, sender, room.getAllUsers());
}
Thanks.