PhantomServer constructor

PhantomServer({
  1. required Type root,
  2. bool reloadable = true,
  3. NodeStorage? storage,
})

Implementation

PhantomServer(
    {required this.root, this.reloadable = true, NodeStorage? storage}) {
  instance = this;
  clock = PrecisionStopwatch.start();
  logger = PLogger("&(#03fc6b)PhantomServer");
  logger.info("Starting PhantomServer with root node $root");
  PLogger.modifiers.add(_sk);
  storage ??= FileConfigJSONNodeSettings();
  pool = NodePool(storage: storage);
  _reloadLogger = PLogger("&(#db03fc)HotReload");
}