exposeWs method

void exposeWs(
  1. String eventName,
  2. WebSocketActionHandler handler
)

Handles the actions of eventName with handler, in place of an @ExposeWs method of that name. Needs no reflection.

Implementation

void exposeWs(String eventName, WebSocketActionHandler handler) {
  _handlers[eventName] = handler;
}