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

Realtime update and synchronization between distinct sessions #7

Open
bamboospirit opened this issue Jan 1, 2021 · 2 comments
Open

Comments

@bamboospirit
Copy link

Realtime update and synchronization between distinct sessions : https://youtu.be/MZvmYaFkNJI?t=419

"You need to use Websockets. Try this widget:
https://github.com/40ants/weblocks-websocket
And also you'll need some library to do the pubsub. I found this one working atop of Redis:

https://github.com/death/lredis
But I didn't try lredis yet.

A little "dsl" on top of that would be nice. Like the "broadcast" message that appears in the video. That automatically plugs websockets for weblocks components."

@svetlyak40wt
Copy link
Member

It is better to make such tools as a separate library. But thanks for an idea.

@bamboospirit
Copy link
Author

I think weblocks-websocket can be updated to handle more commands (rather than just updating the widget which sends an 'update message') and also to manage subscribing clients and publishing messages to them. I will give it a try and also create a demo if I succeed

@svetlyak40wt svetlyak40wt transferred this issue from 40ants/weblocks Jan 5, 2022
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