{"action":"created","issue":{"url":"https://api.github.com/repos/ably/ably-js/issues/393","repository_url":"https://api.github.com/repos/ably/ably-js","labels_url":"https://api.github.com/repos/ably/ably-js/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/ably/ably-js/issues/393/comments","events_url":"https://api.github.com/repos/ably/ably-js/issues/393/events","html_url":"https://github.com/ably/ably-js/issues/393","id":219024163,"number":393,"title":"Cannot keep distinct connections under Chrome / Chrome Incognito in Javascript Realtime Library","user":{"login":"mattheworiordan","id":43789,"avatar_url":"https://avatars3.githubusercontent.com/u/43789?v=4","gravatar_id":"","url":"https://api.github.com/users/mattheworiordan","html_url":"https://github.com/mattheworiordan","followers_url":"https://api.github.com/users/mattheworiordan/followers","following_url":"https://api.github.com/users/mattheworiordan/following{/other_user}","gists_url":"https://api.github.com/users/mattheworiordan/gists{/gist_id}","starred_url":"https://api.github.com/users/mattheworiordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattheworiordan/subscriptions","organizations_url":"https://api.github.com/users/mattheworiordan/orgs","repos_url":"https://api.github.com/users/mattheworiordan/repos","events_url":"https://api.github.com/users/mattheworiordan/events{/privacy}","received_events_url":"https://api.github.com/users/mattheworiordan/received_events","type":"User","site_admin":false},"labels":[{"id":19211546,"url":"https://api.github.com/repos/ably/ably-js/labels/bug","name":"bug","color":"e11d21","default":true},{"id":312653509,"url":"https://api.github.com/repos/ably/ably-js/labels/investigate","name":"investigate","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-03T18:40:03Z","updated_at":"2018-02-20T09:53:18Z","closed_at":"2018-02-20T09:53:18Z","author_association":"OWNER","body":"Creating this issue on behalf of a customer, support ticket 1738.\r\n\r\n---\r\n\r\nWe've observed quite a peculiar situation with attaching to channels using the Javascript Ably library. A bug report is included below:\r\n\r\nBug Component: Ably Javascript Realtime Library (v0.8.42)\r\nBug Description: Cannot keep distinct connections on Chrome & Chrome Incognito mode - attaching to a channel on one disconnects the other.\r\nChrome Version Tested: Version 57.0.2987.133 (64-bit)\r\n\r\nSteps to replicate:\r\n- Create a test page that includes Ably and some basic testing functions to receive messages on Chrome (non-incognito) & an Incognito tab in the same browser.\r\nAssign different channels to them (channel A & B, as example)\r\n\r\n- Open said page with Chrome non-incognito. Channel A is attached. Send message to channel A -- Chrome receives message (expected behavior)\r\n\r\n- Open said page with Incognito Chrome. Channel B is attached. Ably debug console reports Channel Closed, Connection Closed and then two Connection/Transport Opened, Channel Opened messages on Channel B. \r\n\r\n- Send message to channel B -- both Chrome and Incognito Chrome receive message (wrong behavior)\r\n\r\nWe've been unable to replicate this issue on a Chrome-derivative browser (e.g. Opera) but the issue is readily observable on Chrome.\r\nJavascript call codes to Ably are very simple:\r\n\r\n```\r\nwindow.ably = new Ably.Realtime({ key: 'ABLY_OP_KEY', fallbackHostsUseDefault: true });\r\nwindow.channel = ably.channels.get(\"(generate random channel here)\");\r\nwindow.channel.subscribe(\"testEvent\", function(message) { console.log(message.data); });\r\n```"},"comment":{"url":"https://api.github.com/repos/ably/ably-js/issues/comments/366924944","html_url":"https://github.com/ably/ably-js/issues/393#issuecomment-366924944","issue_url":"https://api.github.com/repos/ably/ably-js/issues/393","id":366924944,"user":{"login":"SimonWoolf","id":5908687,"avatar_url":"https://avatars1.githubusercontent.com/u/5908687?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonWoolf","html_url":"https://github.com/SimonWoolf","followers_url":"https://api.github.com/users/SimonWoolf/followers","following_url":"https://api.github.com/users/SimonWoolf/following{/other_user}","gists_url":"https://api.github.com/users/SimonWoolf/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonWoolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonWoolf/subscriptions","organizations_url":"https://api.github.com/users/SimonWoolf/orgs","repos_url":"https://api.github.com/users/SimonWoolf/repos","events_url":"https://api.github.com/users/SimonWoolf/events{/privacy}","received_events_url":"https://api.github.com/users/SimonWoolf/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T09:53:18Z","updated_at":"2018-02-20T09:53:18Z","author_association":"OWNER","body":"Closing this as unable to reproduce, and failure as reported should not be possible. Customer also reported unable to reproduce."}}
{"actor":{"display_login":"SimonWoolf"}}