40ants / reblocks

A fork of Weblocks Common Lisp web framework
https://40ants.com/reblocks/
Other
52 stars 10 forks source link

Realtime update and synchronization between distinct sessions #7

Open bamboospirit opened 3 years ago

bamboospirit commented 3 years ago

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 commented 3 years ago

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

bamboospirit commented 3 years ago

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