on method

void on(
  1. dynamic event,
  2. dynamic handler
)

Implementation

void on(event, handler) => sockets.on(event, handler);