{"action":"created","issue":{"url":"https://api.github.com/repos/btford/angular-socket-io/issues/98","labels_url":"https://api.github.com/repos/btford/angular-socket-io/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/btford/angular-socket-io/issues/98/comments","events_url":"https://api.github.com/repos/btford/angular-socket-io/issues/98/events","html_url":"https://github.com/btford/angular-socket-io/issues/98","id":56671874,"number":98,"title":"Examples are incorrect missing var","user":{"login":"whisher","id":652499,"avatar_url":"https://avatars.githubusercontent.com/u/652499?v=3","gravatar_id":"","url":"https://api.github.com/users/whisher","html_url":"https://github.com/whisher","followers_url":"https://api.github.com/users/whisher/followers","following_url":"https://api.github.com/users/whisher/following{/other_user}","gists_url":"https://api.github.com/users/whisher/gists{/gist_id}","starred_url":"https://api.github.com/users/whisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whisher/subscriptions","organizations_url":"https://api.github.com/users/whisher/orgs","repos_url":"https://api.github.com/users/whisher/repos","events_url":"https://api.github.com/users/whisher/events{/privacy}","received_events_url":"https://api.github.com/users/whisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-05T13:48:00Z","updated_at":"2015-02-07T02:41:46Z","closed_at":null,"body":"Hi Brian,\r\njust to point out a missing var\r\n```javascript\r\nfactory('mySocket', function (socketFactory) {\r\n    var myIoSocket = io.connect('/some/path');\r\n    mySocket = socketFactory({\r\n        ioSocket: myIoSocket\r\n    });\r\n   return mySocket;\r\n});\r\n```\r\nshould be\r\n```javascript\r\nfactory('mySocket', function (socketFactory) {\r\n    var myIoSocket = io.connect('/some/path');\r\n    var mySocket = socketFactory({\r\n        ioSocket: myIoSocket\r\n    });\r\n   return mySocket;\r\n});\r\n```\r\n\r\nmy 2 cents :) bye"},"comment":{"url":"https://api.github.com/repos/btford/angular-socket-io/issues/comments/73346276","html_url":"https://github.com/btford/angular-socket-io/issues/98#issuecomment-73346276","issue_url":"https://api.github.com/repos/btford/angular-socket-io/issues/98","id":73346276,"user":{"login":"AritzBi","id":2855849,"avatar_url":"https://avatars.githubusercontent.com/u/2855849?v=3","gravatar_id":"","url":"https://api.github.com/users/AritzBi","html_url":"https://github.com/AritzBi","followers_url":"https://api.github.com/users/AritzBi/followers","following_url":"https://api.github.com/users/AritzBi/following{/other_user}","gists_url":"https://api.github.com/users/AritzBi/gists{/gist_id}","starred_url":"https://api.github.com/users/AritzBi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AritzBi/subscriptions","organizations_url":"https://api.github.com/users/AritzBi/orgs","repos_url":"https://api.github.com/users/AritzBi/repos","events_url":"https://api.github.com/users/AritzBi/events{/privacy}","received_events_url":"https://api.github.com/users/AritzBi/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T02:41:46Z","updated_at":"2015-02-07T02:41:46Z","body":"I have testing the example also, and.. Is not missing the \"io\" library?\r\n\r\nI have the following error: ReferenceError: io is not defined"}}