onpong method

void onpong([
  1. dynamic _
])

Called upon a packet.

@api private

Implementation

void onpong([_]) {
  num lastPingMs = lastPing ?? DateTime.now().millisecondsSinceEpoch;
  emitAll('pong', DateTime.now().millisecondsSinceEpoch - lastPingMs);
}