{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/angularSails/issues/72","labels_url":"https://api.github.com/repos/balderdashy/angularSails/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/angularSails/issues/72/comments","events_url":"https://api.github.com/repos/balderdashy/angularSails/issues/72/events","html_url":"https://github.com/balderdashy/angularSails/issues/72","id":117896934,"number":72,"title":"Correct way injecting angularSails?","user":{"login":"kestuxg","id":8203690,"avatar_url":"https://avatars.githubusercontent.com/u/8203690?v=3","gravatar_id":"","url":"https://api.github.com/users/kestuxg","html_url":"https://github.com/kestuxg","followers_url":"https://api.github.com/users/kestuxg/followers","following_url":"https://api.github.com/users/kestuxg/following{/other_user}","gists_url":"https://api.github.com/users/kestuxg/gists{/gist_id}","starred_url":"https://api.github.com/users/kestuxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kestuxg/subscriptions","organizations_url":"https://api.github.com/users/kestuxg/orgs","repos_url":"https://api.github.com/users/kestuxg/repos","events_url":"https://api.github.com/users/kestuxg/events{/privacy}","received_events_url":"https://api.github.com/users/kestuxg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T20:06:27Z","updated_at":"2016-01-19T18:14:46Z","closed_at":null,"body":"Hi,\r\nIf I'm using var myApp = angular.module('app ', ['sails.io']); and after that injecting $sailsSocket in service/controller/...\r\nI have no .on method, but I just use .subscribe (same thing).\r\nIf I'm var myApp = angular.module('app ', ['angularSails.io']); and after that injecting $sailsSocket\r\n$sailsSocket is just plain function.\r\nand after I do for example var socket = $sailsSocket(); I can use .on method but not .subscribe.\r\nLooks like 'sails.io' is the way to go as it injects proper object, but why such a different behavior?\r\n\r\np.s. I had difficult time making angularSails to work. as file name is 'ngsails.js', inject you should 'sails.io' and documentation says only about methods you can use."},"comment":{"url":"https://api.github.com/repos/balderdashy/angularSails/issues/comments/172938445","html_url":"https://github.com/balderdashy/angularSails/issues/72#issuecomment-172938445","issue_url":"https://api.github.com/repos/balderdashy/angularSails/issues/72","id":172938445,"user":{"login":"thebigredgeek","id":2799276,"avatar_url":"https://avatars.githubusercontent.com/u/2799276?v=3","gravatar_id":"","url":"https://api.github.com/users/thebigredgeek","html_url":"https://github.com/thebigredgeek","followers_url":"https://api.github.com/users/thebigredgeek/followers","following_url":"https://api.github.com/users/thebigredgeek/following{/other_user}","gists_url":"https://api.github.com/users/thebigredgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/thebigredgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebigredgeek/subscriptions","organizations_url":"https://api.github.com/users/thebigredgeek/orgs","repos_url":"https://api.github.com/users/thebigredgeek/repos","events_url":"https://api.github.com/users/thebigredgeek/events{/privacy}","received_events_url":"https://api.github.com/users/thebigredgeek/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T18:14:46Z","updated_at":"2016-01-19T18:14:46Z","body":"@robwormald seems like a doc update?"}}