Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #30 Provide Event on open and error event #31

Merged
merged 1 commit into from
Nov 21, 2013
Merged

Fixes #30 Provide Event on open and error event #31

merged 1 commit into from
Nov 21, 2013

Conversation

flowersinthesand
Copy link
Contributor

This pull request provides simple event having only type property for open and error event. I thought to implement Event interface but it requires so many additional things or dependency on something like jsdom to call 'document.createEvent'.

So I fixed it by creating an Event object like MessageEvent. Also, since the error event is only just Event having no property explaining the close reason, I commented them.

Let me know how you think.

@aslakhellesoy aslakhellesoy merged commit e4ae6b4 into EventSource:master Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants