noobie question
noobie question
Hi this might sound dumb. But what is best practice for sending an event to all clients that originates from a timed event on the server when you don't have a user?
Check the last "HowTo" in this article from the docs:
http://docs2x.smartfoxserver.com/Gettin ... wtos#item7
cheers
http://docs2x.smartfoxserver.com/Gettin ... wtos#item7
cheers
Without having a user object? This is not very clear to me.
In order to send messages to one or more clients you use the server side send(...) method from your extension which takes a List<User> as the recipient list.
You can obtain the list by taking all users from a Room, a Group of Rooms, an entire Zone etc...
What you suggest is also valid too. If you use Room Variables you will immediately update all clients in a specific Room.
hope it helps
In order to send messages to one or more clients you use the server side send(...) method from your extension which takes a List<User> as the recipient list.
You can obtain the list by taking all users from a Room, a Group of Rooms, an entire Zone etc...
What you suggest is also valid too. If you use Room Variables you will immediately update all clients in a specific Room.
hope it helps