makeGeoChannel static method

GeoChannel makeGeoChannel({
  1. required String channel,
  2. required Map<String, dynamic> metadata,
  3. ChaCha20Key? chaCha20Key,
})

Implementation

static GeoChannel makeGeoChannel(
    {required String channel,
    required Map<String, dynamic> metadata,
    ChaCha20Key? chaCha20Key}) {
  GeoChannel geoChannel = GeoChannel(channel, metadata: jsonEncode(metadata));
  geoChannel.connect(PubSubSupervisor.supervisor);
  return geoChannel;
}