onPing method

void onPing(
  1. EventHandler handler
)

Implementation

void onPing(EventHandler handler) {
  on('ping', handler);
}