{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/SignalR/issues/1483","repository_url":"https://api.github.com/repos/aspnet/SignalR","labels_url":"https://api.github.com/repos/aspnet/SignalR/issues/1483/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/SignalR/issues/1483/comments","events_url":"https://api.github.com/repos/aspnet/SignalR/issues/1483/events","html_url":"https://github.com/aspnet/SignalR/issues/1483","id":299376882,"number":1483,"title":"Working with Groups in SignalR core","user":{"login":"Deggger","id":35373686,"avatar_url":"https://avatars0.githubusercontent.com/u/35373686?v=4","gravatar_id":"","url":"https://api.github.com/users/Deggger","html_url":"https://github.com/Deggger","followers_url":"https://api.github.com/users/Deggger/followers","following_url":"https://api.github.com/users/Deggger/following{/other_user}","gists_url":"https://api.github.com/users/Deggger/gists{/gist_id}","starred_url":"https://api.github.com/users/Deggger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deggger/subscriptions","organizations_url":"https://api.github.com/users/Deggger/orgs","repos_url":"https://api.github.com/users/Deggger/repos","events_url":"https://api.github.com/users/Deggger/events{/privacy}","received_events_url":"https://api.github.com/users/Deggger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-22T14:36:31Z","updated_at":"2018-02-22T15:05:36Z","closed_at":null,"author_association":"NONE","body":"I create Hub class, when new user connect call function OnConnected:\r\n\r\n    public class ReportChat : Hub\r\n    {\r\n    public async Task OnConnected()\r\n    {\r\n        string name = Context.User.Identity.Name;\r\n        await Groups.AddAsync(Context.ConnectionId, name);\r\n    }\r\n}\r\n\r\nBut when connected second user (open new tab with the same user), or sometimes, when I refresh page SignalR generate error on frontend: No Connection with that ID.\r\n\r\nUsing transport protocol: signalR.TransportType.LongPolling\r\n\r\n       connection = new signalR.HubConnection(\"/ReportJson\", { transport: signalR.TransportType.LongPolling });\r\n       connection.on('SendReport',\r\n            function(data) {\r\n                console.log(data.value.name);\r\n            });\r\n       connection.start().then(() => {\r\n            connection.invoke('OnConnected');\r\n            hubConnectionEstablished = true;\r\n        });"},"comment":{"url":"https://api.github.com/repos/aspnet/SignalR/issues/comments/367709187","html_url":"https://github.com/aspnet/SignalR/issues/1483#issuecomment-367709187","issue_url":"https://api.github.com/repos/aspnet/SignalR/issues/1483","id":367709187,"user":{"login":"Deggger","id":35373686,"avatar_url":"https://avatars0.githubusercontent.com/u/35373686?v=4","gravatar_id":"","url":"https://api.github.com/users/Deggger","html_url":"https://github.com/Deggger","followers_url":"https://api.github.com/users/Deggger/followers","following_url":"https://api.github.com/users/Deggger/following{/other_user}","gists_url":"https://api.github.com/users/Deggger/gists{/gist_id}","starred_url":"https://api.github.com/users/Deggger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deggger/subscriptions","organizations_url":"https://api.github.com/users/Deggger/orgs","repos_url":"https://api.github.com/users/Deggger/repos","events_url":"https://api.github.com/users/Deggger/events{/privacy}","received_events_url":"https://api.github.com/users/Deggger/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T15:05:36Z","updated_at":"2018-02-22T15:05:36Z","author_association":"NONE","body":"![image](https://user-images.githubusercontent.com/35373686/36545857-f0f4ad66-17fa-11e8-95d2-f068fd52c313.png)\r\n"}}
{"actor":{"display_login":"Deggger"}}