ping method

Future<void> ping()

Send a empty message to the server to keep the connection alive.

Implementation

Future<void> ping() async {
  await _authenticated.future;
  _sendMessage(SSH_Message_Global_Request.keepAlive());
  await _globalRequestReplyQueue.next;
}