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

Subscriber/client implemtnatino? #1

Open
prologic opened this issue Jan 3, 2022 · 3 comments
Open

Subscriber/client implemtnatino? #1

prologic opened this issue Jan 3, 2022 · 3 comments

Comments

@prologic
Copy link

prologic commented Jan 3, 2022

Hi @tystuyfzand 👋

Sorry to reach out to you like this, you seem to have no other contact methods 😅

I really like your implementation of WebSub here -- I believe it implements both a Hub and Publisher right?

I'm considering using your package/library, however I cannot find a good implementation of a Subscriber/client -- Do you know of any? Or perhaps would you help me build one? I really like your design principles here 😉

Kind regards

James

@tystuyfzand
Copy link
Owner

Sadly there's no implementation of the client right now, but that's a good idea!

@prologic
Copy link
Author

prologic commented Jan 4, 2022

Sadly there's no implementation of the client right now, but that's a good idea!

I'd be happy to work on one with you! I'm looking to integrate WebSub hopefully using your library here and the client library (TBD) in Yarn.social backend called yarnd

I'd love to work on this with you.

The use-case is very simple -- basically what WebSub was designed for:

  • When a user follows a feed from another pod
  • The pod the user is on subscribes to the topic (url for the feed on the other pod) for updates
  • When the user on the other pod posts to their feed all subscribed pods get updated
  • Those subscribed pods then pull the feeds as per normal (feeds are actually Twtxt feeds)

@tystuyfzand
Copy link
Owner

No guarantees on quality or functionality, but check this out and let me know what you think: https://github.com/tystuyfzand/websub-client

If you see anything that could be changed or cleaned up, let me know! I'm not quite sure how to implement it well for other web frameworks, but this is a start.

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

No branches or pull requests

2 participants