Feature #358
Migrate incoming server module messages to event listening model
| Status : | New | Start : | 09/09/2010 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | derek clayton | % Done : | 0% |
|
| Category : | Modules | |||
| Target version : | Future | |||
Description
Currently, server module message and room module messages use two different methods for implementing on the server.
Server Module Messages: are invoked directly on the server object
Room Module Messages: dispatch an event from the room which can be listened to by any object
Review both practices and determine if improvements can be made with the following considerations:
1) Consistency. From a client developer pov the two types are very similar and two very different approaches may cause confusion.
2) Other objects might want to listen to server module messages through an event.
3) Room Modules (and other objects) might want to listen to only one type of messages rather than having to listen for all room module messages for a room and then doing a switch.
The solution could be to expand both by providing a server module event while allowing rooms to have targeted messages which can be invoked through a method.
History
11/19/2010 08:53 PM - derek clayton
- Target version changed from Pending Review to Union Server 1.0 Beta 2
Also available in: Atom