onDisconnect method

void onDisconnect(
  1. EventHandler handler
)

Implementation

void onDisconnect(EventHandler handler) {
  on('disconnect', handler);
}