public Task <FactorioServerExtraSettings> GetServerExtraSettings() { string connectionId = Context.ConnectionId; if (Context.Items.TryGetValue(connectionId, out object serverId)) { string id = (string)serverId; return(_factorioServerManager.GetExtraServerSettings(id)); } return(Task.FromResult(new FactorioServerExtraSettings())); }