{"action":"opened","issue":{"url":"https://api.github.com/repos/Vatrushkin/loopback-hook-socket/issues/2","repository_url":"https://api.github.com/repos/Vatrushkin/loopback-hook-socket","labels_url":"https://api.github.com/repos/Vatrushkin/loopback-hook-socket/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Vatrushkin/loopback-hook-socket/issues/2/comments","events_url":"https://api.github.com/repos/Vatrushkin/loopback-hook-socket/issues/2/events","html_url":"https://github.com/Vatrushkin/loopback-hook-socket/issues/2","id":169410569,"number":2,"title":"2 minor bugs causing a major crash, and the Fix","user":{"login":"devillized","id":14857720,"avatar_url":"https://avatars.githubusercontent.com/u/14857720?v=3","gravatar_id":"","url":"https://api.github.com/users/devillized","html_url":"https://github.com/devillized","followers_url":"https://api.github.com/users/devillized/followers","following_url":"https://api.github.com/users/devillized/following{/other_user}","gists_url":"https://api.github.com/users/devillized/gists{/gist_id}","starred_url":"https://api.github.com/users/devillized/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devillized/subscriptions","organizations_url":"https://api.github.com/users/devillized/orgs","repos_url":"https://api.github.com/users/devillized/repos","events_url":"https://api.github.com/users/devillized/events{/privacy}","received_events_url":"https://api.github.com/users/devillized/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T15:59:55Z","updated_at":"2016-08-04T15:59:55Z","closed_at":null,"body":"Hi,\r\n\r\nFirst off, Great to see this module sorting out a much needed functionality man. If this gets working properly, it'll save me (& many others) a lot of effort. Thanks to you !\r\n\r\nFound 2 little bugs that caused this module to currently crash loopback. \r\nhere's the version of loopback I'm using currently.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/14857720/17407992/097ea586-5a87-11e6-8e7c-c40262ecf7e0.png)\r\n\r\nstill exploring this module so might uncover more bugs. \r\n\r\nTHE PROBLEMS:\r\nOn installing to loopback using bower, it breaks function at 2 points so far\r\n\r\n1> socket-hooks.js : 190\r\nthe function \"formatRoutes\" needs to first be defined internally within the scope of socket-hook.js (& then attached to exports). It is currently defined directly at exports.\r\n\r\n\r\n2>Parse error when sending a login request over socket.io at \"user:login\"\r\n\r\nTHE FIX :\r\nI've forked a branch (dw-mods) & made changes there. I guess you can see it at your end ?\r\nSorry, I'm new to this github thing.\r\n"}}
{"actor":{"display_login":"devillized"}}