{"action":"opened","issue":{"url":"https://api.github.com/repos/tlaverdure/laravel-echo-server/issues/83","repository_url":"https://api.github.com/repos/tlaverdure/laravel-echo-server","labels_url":"https://api.github.com/repos/tlaverdure/laravel-echo-server/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/tlaverdure/laravel-echo-server/issues/83/comments","events_url":"https://api.github.com/repos/tlaverdure/laravel-echo-server/issues/83/events","html_url":"https://github.com/tlaverdure/laravel-echo-server/issues/83","id":194838476,"number":83,"title":"How to use this package just for notification?","user":{"login":"xparthx","id":4241851,"avatar_url":"https://avatars.githubusercontent.com/u/4241851?v=3","gravatar_id":"","url":"https://api.github.com/users/xparthx","html_url":"https://github.com/xparthx","followers_url":"https://api.github.com/users/xparthx/followers","following_url":"https://api.github.com/users/xparthx/following{/other_user}","gists_url":"https://api.github.com/users/xparthx/gists{/gist_id}","starred_url":"https://api.github.com/users/xparthx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xparthx/subscriptions","organizations_url":"https://api.github.com/users/xparthx/orgs","repos_url":"https://api.github.com/users/xparthx/repos","events_url":"https://api.github.com/users/xparthx/events{/privacy}","received_events_url":"https://api.github.com/users/xparthx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-11T15:43:42Z","updated_at":"2016-12-11T15:43:42Z","closed_at":null,"body":"Hello,\r\n\r\nI have a simple blog site. User can comment on blog. I just want to show a simple popup notification to the blog author when someone comments on his blog. \r\n\r\nI have already read this:\r\nhttps://laravel.com/docs/5.3/broadcasting#introduction\r\n\r\nHere is what I did to achieve the task:\r\n1) Setup an event, which gets fired upon new comment\r\n2) Imported: <script src=\"https://cdn.socket.io/socket.io-1.4.5.js\"></script> in blade template\r\n3) Added in, resources\\assets\\js\\bootstrap.js: (as per the Laravel documentation says)\r\nimport Echo from \"laravel-echo\"\r\nwindow.Echo = new Echo({\r\n    broadcaster: 'socket.io',\r\n    key: 'http://blog.local:6001'\r\n});\r\n4) I have setup this package as per the: https://github.com/tlaverdure/laravel-echo-server#laravel-echo-server\r\n5) Fired command: laravel-echo-server start\r\n\r\nWhen, I open the web browser and check console, I'm continuously getting this errors:\r\nsocket.io-1.4.5.js:1 GET http://blog.local/socket.io?EIO=3&transport=polling&t=LZkVvZQ 404 (Not Found)\r\n\r\nHere is my \"laravel-echo-server.json\"\r\n{\r\n\t\"appKey\": \"7k2g9nlm6i492ckorlmp35ng4frusfmt4uq1n68usn3re5lcl4sfg3gibi5d\",\r\n\t\"authHost\": null,\r\n\t\"authEndpoint\": \"/broadcasting/auth\",\r\n\t\"database\": \"sqlite\",\r\n\t\"databaseConfig\": {\r\n\t\t\"redis\": {},\r\n\t\t\"sqlite\": {\r\n\t\t\t\"databasePath\": \"/database/laravel-echo-server.sqlite\"\r\n\t\t}\r\n\t},\r\n\t\"devMode\": false,\r\n\t\"host\": \"blog.local\",\r\n\t\"port\": \"\",\r\n\t\"referrers\": [],\r\n\t\"socketio\": {},\r\n\t\"sslCertPath\": \"\",\r\n\t\"sslKeyPath\": \"\"\r\n}\r\n\r\nI think some issues with socket connection.\r\n\r\nAny help would be appreciated.\r\n\r\nThanks,\r\nParth vora"}}
{"actor":{"display_login":"xparthx"}}