getConnection method
Implementation
BaseConnection? getConnection(String peerId, String connectionId) {
final connections = _connections[peerId];
if (connections != null) {
for (final connection in connections) {
if (connection.connectionId == connectionId) {
return connection;
}
}
}
return null;
}