add hub server methods

This commit is contained in:
chsakell
2016-10-03 09:24:41 +03:00
parent b0040ac178
commit ac92ee2d30
5 changed files with 32 additions and 4 deletions

View File

@@ -13,5 +13,15 @@ namespace LiveGameFeed.Hubs
{
return Clients.All.messageReceived(Context.ConnectionId + "> " + message);
}
public Task Subscribe(int matchId)
{
return Groups.Add(Context.ConnectionId, matchId.ToString());
}
public Task Unsubscribe(int matchId)
{
return Groups.Remove(Context.ConnectionId, matchId.ToString());
}
}
}