Hi Joe > I'm running the node backend downloaded from > https://github.com/Jermolene/TiddlyWiki5 > and was wondering exactly what the protocol between the browser and backend > was.
The TW5 client (contained in the plugin $:/plugins/tiddlywiki/tiddlyweb) talks to the server with the TiddlyWeb API, a flexible API for putting tiddlers on the web. It was originally developed for TiddlyWiki Classic, and is documented at http://tiddlyweb.com/. The TW5 server (contained in the core plugin) supports a bare minimum of the TiddlyWeb API for personal use. > At a guess it's JSON over HTTP (I might be wrong) - is the protocol > *specified* somewhere > or do I have to read the code (if so where?) It is indeed a traditional RESTesque JSON over HTTP interface. The client end of the TW5 implementation is here: https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js <https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js> And the server end is here: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/server.js <https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/server.js> > Is there a way of tracing and dumping to a file all the messages between the > browser and node > so I can see exactly what is happening? Using the browser developer tools “Network” tab gives an excellent insight into what is going on. Best wishes Jeremy. > > Cheers > > /Joe > > > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywikidev > <https://groups.google.com/group/tiddlywikidev>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywikidev/3214cda4-fcc3-478c-afc1-01be9b5fb359%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywikidev/3214cda4-fcc3-478c-afc1-01be9b5fb359%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/9CB26924-2D5F-4086-8849-F51834E6C5AC%40gmail.com. For more options, visit https://groups.google.com/d/optout.
