{"action":"created","issue":{"url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast/issues/1","repository_url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast","labels_url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast/issues/1/comments","events_url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast/issues/1/events","html_url":"https://github.com/schwarzkopfb/sse-broadcast/issues/1","id":174913345,"number":1,"title":"The default eventOrOptions argument in the publish() method should be 'message'","user":{"login":"andrewyang96","id":8145684,"avatar_url":"https://avatars.githubusercontent.com/u/8145684?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewyang96","html_url":"https://github.com/andrewyang96","followers_url":"https://api.github.com/users/andrewyang96/followers","following_url":"https://api.github.com/users/andrewyang96/following{/other_user}","gists_url":"https://api.github.com/users/andrewyang96/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewyang96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewyang96/subscriptions","organizations_url":"https://api.github.com/users/andrewyang96/orgs","repos_url":"https://api.github.com/users/andrewyang96/repos","events_url":"https://api.github.com/users/andrewyang96/events{/privacy}","received_events_url":"https://api.github.com/users/andrewyang96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-03T19:31:09Z","updated_at":"2016-09-06T06:21:23Z","closed_at":null,"body":"The EventSource `onmessage` event handler won't fire unless the received message's event type is `message`. Your Express demo is a little misleading in that regard if someone just wants to connect an EventSource object on the frontend to an sse-broadcast powered endpoint. Otherwise, this is a great Node package! It's much better than the one I tried building :smiley: "},"comment":{"url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast/issues/comments/244859843","html_url":"https://github.com/schwarzkopfb/sse-broadcast/issues/1#issuecomment-244859843","issue_url":"https://api.github.com/repos/schwarzkopfb/sse-broadcast/issues/1","id":244859843,"user":{"login":"andrewyang96","id":8145684,"avatar_url":"https://avatars.githubusercontent.com/u/8145684?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewyang96","html_url":"https://github.com/andrewyang96","followers_url":"https://api.github.com/users/andrewyang96/followers","following_url":"https://api.github.com/users/andrewyang96/following{/other_user}","gists_url":"https://api.github.com/users/andrewyang96/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewyang96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewyang96/subscriptions","organizations_url":"https://api.github.com/users/andrewyang96/orgs","repos_url":"https://api.github.com/users/andrewyang96/repos","events_url":"https://api.github.com/users/andrewyang96/events{/privacy}","received_events_url":"https://api.github.com/users/andrewyang96/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T06:21:23Z","updated_at":"2016-09-06T06:21:23Z","body":"My environment is Windows 10, Node v4.5.0, and the latest versions of Chrome (52.0.2743.116) and Firefox (48.0.2). My sample code is located in this repository: https://github.com/andrewyang96/nodejs-sse-example\r\n\r\nThe SSE messages arrive successfully to the browser, but whatever function I attach to EventSource's `onmessage ` attribute does not fire when these messages arrive at the browser."}}
{"actor":{"display_login":"andrewyang96"}}