Page 1 of 1

sendMessageToGroup

Posted: 29 Feb 2008, 13:14
by Gosub
It would be very nice to have a method that sends messages to a group of recipients - let's say sendMessageToGroup (just like sendObjectToGroup). When using sendObjectToGroup for this purpose, neither the built in BadWordsFilter nor AntiFlood can be used.

Or am I wrong?
Thanks!

Posted: 29 Feb 2008, 13:38
by Lapo
You're right.
So probably the method should be called sendPublicMessageToGroup()

I am wondering how this would work from the client side...
In a normal chat you would select multiple users from a dropdown and then send the message?
Or maybe this function should only exist on the server side?

Posted: 29 Feb 2008, 13:53
by Gosub
Thanks for your immediate answer, Lapo!

In my case there is an isometric chat view that is larger than the visible area, so users can walk around and "meet" different people depending on where they are. Messages should be sent only only to those users that are currently inside the visible area. Therefore I do not need any dropdown - the group ist collected automatically.

Posted: 29 Feb 2008, 13:59
by Lapo
I see... interesting! :)
Ok, we'll add it to the to-do list

Posted: 29 Feb 2008, 14:01
by Gosub
GREAT!!!

Posted: 30 Sep 2008, 18:35
by DrD00m0
Just wondering when we can expect this feature. Is it a matter of weeks or months?

If not anytime soon I'll implement my own solution - simply wanted to sync up and see what's ahead.

Thanks for your help!

Posted: 01 Oct 2008, 15:14
by Lapo
Hi,
the next update is planned for end of November/beginning of December.
And yep, I think that this feature is going to be added in the next release.

If you're in a hurry, you can easily implement it on the server side using the sendGenericMessage() method.

You just need to mimick the same XML format used by the public message and provide a custom list of recipients.
NOTE: if you plan to send the message across multiple rooms you might have problems detecting the sender on the client side. This is because each client only "knows" the users that exist in the room(s) that he has joined.

Hope it helps