{"action":"opened","issue":{"url":"https://api.github.com/repos/socketio/socket.io-client/issues/1041","repository_url":"https://api.github.com/repos/socketio/socket.io-client","labels_url":"https://api.github.com/repos/socketio/socket.io-client/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-client/issues/1041/comments","events_url":"https://api.github.com/repos/socketio/socket.io-client/issues/1041/events","html_url":"https://github.com/socketio/socket.io-client/issues/1041","id":193321555,"number":1041,"title":"Socket is connecting without an id","user":{"login":"JasonEtco","id":10660468,"avatar_url":"https://avatars.githubusercontent.com/u/10660468?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonEtco","html_url":"https://github.com/JasonEtco","followers_url":"https://api.github.com/users/JasonEtco/followers","following_url":"https://api.github.com/users/JasonEtco/following{/other_user}","gists_url":"https://api.github.com/users/JasonEtco/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonEtco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonEtco/subscriptions","organizations_url":"https://api.github.com/users/JasonEtco/orgs","repos_url":"https://api.github.com/users/JasonEtco/repos","events_url":"https://api.github.com/users/JasonEtco/events{/privacy}","received_events_url":"https://api.github.com/users/JasonEtco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-03T23:57:42Z","updated_at":"2016-12-03T23:57:42Z","closed_at":null,"body":"### You want to:\r\n\r\n* [x] report a *bug*\r\n* [ ] request a *feature*\r\n\r\n### Current behaviour\r\nAfter declaring the socket as a a variable, the object is missing an `id`. This only occurs for the 6th socket (possibly more, but cannot  test), when there are 5 existing sockets (users accessing the page).\r\n```\r\nimport io from 'socket.io-client';\r\nconst socket = io();\r\nconsole.log(socket);\r\n```\r\n\r\n![Output](http://i.imgur.com/8zc5TMQ.png)\r\n\r\n### Steps to reproduce (if the current behaviour is a bug)\r\n1. In a NodeJS environment, `npm install` socket.io and socket.io-client\r\n2. Server side as normal.\r\n3. Client side, use the above code snippet.\r\n4. Connect to the server in 5 different tabs; then observe the console.log on a 6th tab.\r\n\r\n### Expected behaviour\r\nThe socket object should contain an `id` key/value pair.\r\n\r\n### Setup\r\n- OS: Windows 10\r\n- browser:  Google Chrome\r\n- socket.io version:\r\n\r\n\r\n"}}
{"actor":{"display_login":"JasonEtco"}}