initializeNotifyService function

void initializeNotifyService(
  1. AtClientManager atClientManager,
  2. String currentAtSign,
  3. AtClientPreference atClientPreference, {
  4. dynamic rootDomain = 'root.atsign.wtf',
  5. dynamic rootPort = 64,
})

The notify service needs to be initialised. It is expected that the app will first create an AtClientService instance using the preferences and then use it to initialise the notify service.

Implementation

void initializeNotifyService(AtClientManager atClientManager,
    String currentAtSign, AtClientPreference atClientPreference,
    {rootDomain = 'root.atsign.wtf', rootPort = 64}) {
  NotifyService().initNotifyService(
      atClientPreference, currentAtSign, rootDomain, rootPort);
}