Open bamboospirit opened 3 years ago
It is better to make such tools as a separate library. But thanks for an idea.
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
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."