addRequestForRelay method

void addRequestForRelay(
  1. String url,
  2. List<Filter> filters
)

Adds a request towards url on the connection this request's RelayAuth allows. A relay no connection can satisfy is skipped: falling back to the anonymous one is what the caller ruled out.

Implementation

void addRequestForRelay(String url, List<Filter> filters) {
  final key = RelayAuth.keyFor(url, request.auth);
  if (key == null) {
    Logger.log.w(() => "No connection can carry ${request.id} to $url");
    return;
  }
  addRequest(key, filters);
}