onReconnect method

void onReconnect(
  1. EventHandler handler
)

Implementation

void onReconnect(EventHandler handler) {
  on('reconnect', handler);
}