onPing method

void onPing(
  1. EventHandler handler
)

Implementation

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