public async Task <FactorioContorlClientData> SetServerId(string serverId) { string connectionId = Context.ConnectionId; Context.Items[connectionId] = serverId; await Groups.RemoveFromGroupAsync(connectionId, serverId); await Groups.AddToGroupAsync(connectionId, serverId); return(new FactorioContorlClientData() { Status = (await _factorioServerManager.GetStatus(serverId)).ToString(), Messages = await _factorioServerManager.GetFactorioControlMessagesAsync(serverId) }); }