eventType | The event type name. |
handler | The handler. |
Action An action that, when invoked, unregisters the handler (see EventService.Off).
Registers a handler for a specific event type. The handler is called whenever a message of the specified type is sent. Messages are sent using EventService.Emit or EventService.Request.