formatUri static method

Uri formatUri(
  1. String protocol,
  2. String version,
  3. String topic,
  4. String symKey,
  5. Relay relay,
)

Implementation

static Uri formatUri(
  String protocol,
  String version,
  String topic,
  String symKey,
  Relay relay,
) {
  Map<String, String> params = formatRelayParams(relay);
  params['symKey'] = symKey;

  return Uri(
      scheme: protocol, path: '$topic@$version', queryParameters: params);
}