NOTE: This only works on the node version of tiddlywiki.

Because I am not using them separately and I don't know of a good reason to 
separate them for now, I combined the two plugins into one and made them 
work well.

With this plugin you can have a multi-user tiddlywiki when running on node. 
It is pretty much like the demo from before but this one works better. And 
prevents multiple browsers from editing the same tiddler. And hopefully 
just runs smoother in general.

The code can probably be made a bit more efficient in some places but it is 
ready for beta testing. I have designed in with the idea of having a single 
tiddlywiki process serving multiple wikis and being able to selectively 
server specific tiddlers to each connected browser, but those features 
aren't ready yet.

This plugin has three distinct parts that I don't know if I should split 
into separate plugins or not since they don't do much on their own:

A file system monitoring component that watches for changes and pushes the 
changes to connected wikis as they happen, so you don't need to refresh the 
server.
A web sockets component that could be used to connect to any web socket 
server, but for now it only connects the browser to the node process for 
two-way communication.
An annoying but necessary bit of code that determines which changes need to 
get pushed to which wikis and what to ignore to prevent infinite updating 
loops. If I never touch this code again I will be happy.

Does anyone have an opinion about if any of the pieces should get their own 
plugin?

As part of this I had to add some more hooks to the navigator widget. I 
will make a pull request on GitHub because it doesn't affect what the 
navigator widget does at all but it was necessary for this, so maybe other 
people will find it useful.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ba30988b-2e30-46f3-8276-9bd0bca2b58f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to