onpong method
void
onpong([
- dynamic _
Called upon a packet.
@api private
Implementation
void onpong([_]) {
num lastPingMs = lastPing ?? DateTime.now().millisecondsSinceEpoch;
emitAll('pong', DateTime.now().millisecondsSinceEpoch - lastPingMs);
}