Publisher: opening a typed collection

AtCollection.registerFactory<HostNode>(HostNode.fromJson, typeTag: 'HostNode');
AtCollection.registerFactory<AtsignOnHost>(AtsignOnHost.fromJson, typeTag: 'AtsignOnHost');
AtCollection.registerFactory<StatSample>(StatSample.fromJson, typeTag: 'StatSample');

final nodes = await atClient.collection<HostNode>(
  'nodes.dockerstats.demos',
  const Duration(minutes: 10),       // default TTL on every leaf
  eventSource: EventSource.both,
);