connect method

Future<PhoenixChannel> connect(
  1. Supervisor supervisor
)

Implementation

Future<PhoenixChannel> connect(Supervisor supervisor) {
  Completer<PhoenixChannel> completer = Completer();
  supervisor.listen('geo:${LocalitySocialCloud.getAppID()}-$channel',
      (phoenixChannel) {
    this.phoenixChannel = phoenixChannel;
  }, messagingTopic: false);

  return completer.future;
}