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

feat(events): create server event emitter #398

Closed
wants to merge 1 commit into from

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented May 13, 2016

This commit creates an event emitter that will serve events in real-time to any client listeners from throughout the application. The current infrastructure uses the native events module in NodeJS, but future implementation might take advantage of redis for publish/subscribe.

Events are cached in a database table event, with schema defined in #390. When a new client connects, they can download the previous events sending a GET request to the url /events. They can subscribe to real-time events by opening an EventSource to /stream.

Closes #390.


Thank you for contributing!

Before submitting this pull request, please verify that you have:

  • Run your code through JSHint. Check out our styleguide.
  • Run integration tests.
  • Run end-to-end tests.
  • Accurately described the changes your are making in this pull request.

For a more detailed checklist, see the official review checklist that this PR will be evaluated against.

Ensuring that the above checkboxes are completed will help speed the review process and help build a stronger application. Thanks!

This commit creates an event emitter that will serve events in real-time
to any client listeners from throughout the application.  The current
infrastructure uses the native `events` module in NodeJS, but future
implementation might take advantage of redis for publish/subscribe.

Closes #390.
@jniles
Copy link
Collaborator Author

jniles commented May 13, 2016

Closing this while I work on a redis implementation.

@jniles jniles closed this May 13, 2016
@jniles jniles deleted the feature-eventd branch May 23, 2016 09:35
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.

1 participant