1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
TiddlyWiki5/plugins/tiddlywiki/tiddlyweb
Nicolas Petton 17b4f53ba2
Add server sent events (#5279)
* Create server-sent-events.js

* Create sse-change-listener.js

* Implement server sent events

* Convert to ES5 and wrap in function

* Use the host string from tiddlyweb

* Improve comments in sse-server.js

* Can't use object reference as key

* Add retry timeout

* Fix a bug

* bug fix

* Fix formatting

* Fix ES5 compat

* capitalize comments

* more fixes

* Refactor tiddlywek/sse-server.js

* Extract helper functions for handling wikis and connections.
* Replace JSDoc comments.
* Fix formatting according to TW core.
* Simplify the logic for adding and removing connections.

* Fix formatting of tiddlyweb/sse-client.js

Fix formatting according to TW core.

* Fix formatting of server-sent-events.js

Fix formatting and comments following TW core guidelines.

* Extract a debounce function in sse-client.js

* Avoid using startsWith in server-sent-events.js

startsWith is part of ES2015, while TiddlyWiki uses the 5.1 dialect.

* New sse-enabled WebServer parameter

* If not set to "yes", disabled SSE request handling.
* Add documentation for the parameter in core/language/en-GB/Help/listen.tid
* Add new tiddler editions/tw5.com/tiddlers/webserver/WebServer Parameter_ sse-enabled.tid

* Disable polling for changes if SSE is enabled

* Add sse_enabled to /status JSON response
* Store syncer polling status in $:/config/SyncDisablePolling
* Handled disabling polling in core/modules/syncer.js

* Simply boolean logic in syncer.js

* Delete trailing whitespaces in syncer.js

Co-authored-by: Arlen22 <arlenbee@gmail.com>
2021-01-15 10:37:55 +00:00
..
config-tiddlers-filter.tid Fix syncing issues with external JS template 2020-08-14 11:06:08 +01:00
configOfficialPluginLibrary.tid Client-server: Add message about disabled plugin library 2020-04-20 13:28:02 +01:00
css-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
GettingStarted.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
html-div-skinny-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
html-div-tiddler.tid Fix the template for serving tiddlers 2013-10-25 22:30:36 +01:00
icon-cloud.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
javascript-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
plugin.info Change description for Filesystem and TiddlyWeb plugins (#4865) 2020-09-24 18:28:22 +01:00
readme.tid Revert "Add text/vnd.tiddlywiki to system tiddlers within plugins that should be wikified (c.f. #2883)" 2017-06-24 17:48:32 +01:00
readonly-styles.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
save-offline.tid Update filters for single file to match changes to syncFilter (#4907) 2020-10-25 15:57:35 +00:00
save-wiki-button.tid TiddlyWebAdaptor: Trim whitespace from save button 2020-03-31 14:54:03 +01:00
SaveWikiButtonTemplate.tid Refactor saver handler 2014-08-20 10:02:44 +01:00
sse-client.js Add server sent events (#5279) 2021-01-15 10:37:55 +00:00
sse-server.js Add server sent events (#5279) 2021-01-15 10:37:55 +00:00
styles.tid Fix 4596 - High cpu consume after upgrade to 5.1.22 (#4634) 2020-05-14 14:31:57 +01:00
syncer-actions-copy-logs.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-login-status.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-login.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-logout.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-refresh.tid Fix small typo in syncer-actions-refresh.tid (#5075) 2020-11-19 16:32:43 +00:00
syncer-actions-save-snapshot.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
tags-syncerdropdown.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
tiddlywebadaptor.js Add server sent events (#5279) 2021-01-15 10:37:55 +00:00

title: $:/plugins/tiddlywiki/tiddlyweb/readme

This plugin runs in the browser to synchronise tiddler changes to and from a TiddlyWeb-compatible server (including TiddlyWiki 5 itself, running on Node.js). It is inert when run under Node.js. Disabling this plugin via the browser can not be undone via the browser since this plugin provides the mechanism to synchronize settings with the server.

[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb]]