PhantomServer constructor
PhantomServer({
- required Type root,
- bool reloadable = true,
- 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");
}