add Hub client interface

This commit is contained in:
chsakell
2016-10-10 09:42:43 +03:00
parent 149e093f16
commit b637f119c8
4 changed files with 14 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ namespace LiveGameFeed.Controllers
FeedViewModel _feedVM = Mapper.Map<Feed, FeedViewModel>(_matchFeed);
await Clients.Group(feed.MatchId.ToString()).addFeed(_feedVM);
await Clients.Group(feed.MatchId.ToString()).AddFeed(_feedVM);
}
}

View File

@@ -43,7 +43,7 @@ namespace LiveGameFeed.Controllers
_matchRepository.Commit();
MatchViewModel _matchVM = Mapper.Map<Match, MatchViewModel>(_match);
await Clients.All.updateMatch(_matchVM);
await Clients.All.UpdateMatch(_matchVM);
}
}
}

View File

@@ -19,7 +19,7 @@ namespace LiveGameFeed.Controllers
[HttpPost]
public void Post([FromBody]ChatMessage message)
{
this.Clients.Group(message.MatchId.ToString()).addChatMessage(message);
this.Clients.Group(message.MatchId.ToString()).AddChatMessage(message);
}
}
}