pingAnswered method

  1. @protected
bool pingAnswered()

Whether the peer answered the last ping, asked when the next is due.

The default is what pongReceived saw. A transport that counts pongs elsewhere overrides it.

Implementation

@protected
bool pingAnswered() => !_pongPending;