On Tuesday, August 17, 2021 at 8:18:27 PM UTC+2 [email protected] wrote:

> Say I have a TiddlyWiki running on node.js, and two people currently 
> viewing the same TiddlyWiki in their browsers.
>
> Say User 1 is editing a tiddler.  I'm thinking it would be cool if  User 2 
> could know that User 1 is editing the tiddler (or that anybody is editing 
> the tiddler.)
>
> And/or, it would be cool if User 2 can get a notification that a 
> particular tiddler has changed (because of User 1's editing), and that User 
> 2 should refresh the browser to get that change if he/she wants it.
>

There is a "server sent events" plugin from Arlen 
https://github.com/twcloud/tiddlyweb-sse which can do exactly that. It's 
much easier to implement than sockets and it works well. 
There are some hickups, because you can see tiddlers that are edited by 
others. They are shown as a "draft of ... by <name>" at the bottom of the 
screen. You can also open them and you will see live editing ... BUT you 
are not allowed to change something on your side :/ ... AND you have to 
close the draft with the Open sidebar X button. Otherwise you will disturb 
the other user. 

-mario


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/346946a6-e52f-42b1-b53a-b420f7474b3cn%40googlegroups.com.

Reply via email to