Sounds good! You’ll probably need to add code to the TW Node server file, and can handle the rest through a plug-in. I have a few NodeJS projects that may help you, if you’d like, too, I can send you their links.
If we are going to collaborate for this, it’s probably easiest to make a GitHub repo for it. Would you like to create the repo, or I’d be happy too, as well. On Tue, Aug 17, 2021 at 3:28 PM Charlie Veniot <cj.ven...@gmail.com> wrote: > Good stuff for later. Thank-you ! > > I'm still very new to node.js and TiddlyWiki on node.js (let's say "white > belt") and I consider myself maybe an "orange belt" re TiddlyWiki. > > Just to prototype, I'm going to go with some old-school thinking, just as > a way to familiarise myself (a bit of a "brain-age exercise") with just the > basics and see how far I can push those basics with a little help from > copy/paste/tweak javascript code. Without typing any javascript code > (since I'm no fan of the stuff.) > > Then I can pass the end-result onward for you to socket.io-cize the thing. > > On Tuesday, August 17, 2021 at 3:49:27 PM UTC-3 flanc...@gmail.com wrote: > >> I'm not sure how familiar you are with Node/Socket.io, so if this is a >> bit confusing for you, just ask me for clarification. I am also always >> willing to collaborate on great ideas, if you would like to build something >> like this and need help, I'd be happy to help via GitHub Collaboration! >> >> On Tuesday, August 17, 2021 at 2:47:15 PM UTC-4 Finn Lancaster wrote: >> >>> Charlie, >>> >>> One way to do this (since you are using node), is to implement Socket.io >>> into the Wiki. Each time the edit button is pressed, tell Socket.io via >>> socket.emit to in turn socket.emit to each client (the first >>> socket.emit would contain JSON containing the name of the editor and the >>> tiddler). With socket.io, too, on each client instance, just add a >>> listener for a specific event using socket.on... , and have it display >>> a simple message such as "name is editing tiddler such-and-such" >>> >>> On Tuesday, August 17, 2021 at 2:18:27 PM UTC-4 cj.v...@gmail.com 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. >>>> >>>> Something like that. >>>> >>>> I'm not convinced it is something I can do, but I'm kind of interested >>>> in trying IF it isn't something that's already been done. >>>> >>> -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/d8f3a50a-c26b-49bc-9bdf-509793970391n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/d8f3a50a-c26b-49bc-9bdf-509793970391n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CALXL%2BrMwG7xFpq%2BEaxkLR_E-bTPG6GqvLWrr0PUdN%2B6%3Dnv3Ftg%40mail.gmail.com.