Skip to content

Support webhooks#6

Open
hotdang-ca wants to merge 12 commits intovinitshahdeo:masterfrom
hotdang-ca:support-webhooks
Open

Support webhooks#6
hotdang-ca wants to merge 12 commits intovinitshahdeo:masterfrom
hotdang-ca:support-webhooks

Conversation

@hotdang-ca
Copy link
Copy Markdown

Support for GitHub Webhook.

The README has the details, but in a nutshell:

  1. Run a simple node express server. Setup Github. Listen for webhooks.
  2. Upon receiving a webhook, broadcast to listening socket.io clients
  3. Poll for new data when clients receive the broadcast.

Added socket.io to the server (server/index.js), and individually on the client (index.html).
The server should run on a publically-accessible host such as Heroku or locally on your machine in combination with Ngrok (which sets up reverse port forwarding so that you have a publically-accessible web server running on your machine, with no additional router setup required).

Tested and works... but... a little confused about the existing timer interval. Currently, one the first webhook broadcast, a notification is shown, and stays... the second webhook notification makes that notification disappear, and will not reappear until the third webhook notification is broadcast.

Depending on what type of data you want to listen to, we could just generated a new notification based on incoming payload data; but that requires a bit more collaboration on a specific set of notifications to show.

@vinitshahdeo vinitshahdeo self-requested a review October 13, 2019 09:32
@vinitshahdeo vinitshahdeo added the enhancement New feature or request label Oct 13, 2019
@vinitshahdeo
Copy link
Copy Markdown
Owner

@hotdang-ca That's awesome. I'll review and merge it soon.

@vinitshahdeo vinitshahdeo added good first issue Good for newcomers hacktoberfest Send PR and earn a free t-shirt labels Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers hacktoberfest Send PR and earn a free t-shirt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants