supervise static method

void supervise(
  1. PubSub pubSub, {
  2. ChaCha20Key? key,
})

Supervise a PubSub to connect to the Locality Social Cloud, optionally using a ChaCha20Key for encryption. This will ensure that the connection status is properly managed.

Implementation

static void supervise(PubSub pubSub, {ChaCha20Key? key}) {
  PubSubSupervisor.registerPubSub(pubSub, key: key);
}