As discussed here: http://tinyurl.com/2omrl9
For now, we use String to identify event types, which is somewhat unsafe. Using an enum might be useful, but there are a few disadvantages:
- Wildcard event type cannot be used, which could be extended further (e.g. "message*" or "session(Opened|Closed)")
Probably sticking to String might be the best solution?