Returns the current connection, in the same format as the connectionChanged event.
connectionChanged
Future<Map<String, Object?>> getConnection();