WebSub to EventSource - so you can subscribe without hosting a server. Safer, simpler.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/controllers
conf
project
test
.gitignore
LICENSE
README.md
build.sbt

README.md

websub-to-eventsource

WebSub to EventSource - so you can subscribe without hosting a server. Safer, simpler.

... cause you don't always want to go through setting up a web server just to receive notifications.

Tutorial

To test a subscription, do:

  1. Go to https://websub.rocks/subscriber/100
  2. Get the URL (eg https://websub.rocks/blog/100/abcdef)
  3. Execute curl -i 'https://websub-to-eventsource.herokuapp.com/events?from=https://websub.rocks/blog/100/abcdef'.
  4. Notice a subscription on websub page
  5. Press Continue (blue button)
  6. Press Create New Post (blue button)
  7. Notice that it outputs in your command line :-)

Clients

You may use other clients, such as NodeJS EventSource client or Scala Akka Alpakka Server-Sent-Events Connector.

Licence

Apache Licence 2.0

Contributions

There're many holes there, this is only a proof-of-concept.

Contributions to make this much better are very welcome.