onWebsocketPing method
"An APP_PING is an empty message. It is sent by the reflector to each endpoint when both endpoints have connected to the reflector. On first connecting to a reflector, the endpoints should wait to receive this message before initiating any communications. After any other message has been received, the APP_PING message becomes a no-op, and should be ignored." source
Implementation
@override
void onWebsocketPing(final List<int> data) {
if (!_pingCompleter.isCompleted) {
_pingCompleter.complete();
}
}