1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 19:10:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/webserver
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
..
TiddlyWeb JSON tiddler format.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
Using HTTPS.tid Docs: fix HTTPS command typos 2019-01-27 14:35:58 +00:00
Using the external JavaScript template.tid Fix syncing issues with external JS template 2020-08-14 11:06:08 +01:00
Using the integrated static file server.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
Using the read-only single tiddler view.tid Improvements to the static single tiddler view as well as documentation. (#3386) 2018-12-01 13:30:00 +00:00
WebServer Anonymous Access.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer API_ Delete Tiddler.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API_ Force Basic Authentication Login.tid Fix basic authentication forced login 2018-12-16 18:20:33 +00:00
WebServer API_ Get All Tiddlers.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
WebServer API_ Get Favicon.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API_ Get File.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API_ Get Rendered Tiddler.tid Docs update 2018-10-02 14:54:46 +01:00
WebServer API_ Get Server Status.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API_ Get Tiddler.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API_ Get Wiki.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API_ Put Tiddler.tid Finish web server API docs 2018-10-02 14:16:58 +01:00
WebServer API.tid Docs update 2018-10-02 14:19:06 +01:00
WebServer Authentication.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Authorization.tid Docs: webserver and read-only mode 2018-09-05 08:38:47 +01:00
WebServer Basic Authentication.tid Fix basic authentication forced login 2018-12-16 18:20:33 +00:00
WebServer Guides.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Header Authentication.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ anon-username.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ authenticated-user-header.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ credentials.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ csrf-disable.tid Docs: Update WebServer Parameter: csrf-disable 2019-04-23 17:53:19 +01:00
WebServer Parameter_ debug-level.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ host.tid Info about using 0.0.0.0, plus warning about using it. (#3519) 2018-11-29 09:47:37 +00:00
WebServer Parameter_ password.tid Fix typo password -> username (#3686) 2019-01-14 09:42:09 +00:00
WebServer Parameter_ path-prefix.tid Update path-prefix docs 2020-10-27 12:32:06 +00:00
WebServer Parameter_ port.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
WebServer Parameter_ readers.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ root-render-type.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ root-serve-type.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ root-tiddler.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ sse-enabled.tid Add server sent events (#5279) 2021-01-15 10:37:55 +00:00
WebServer Parameter_ system-tiddler-render-template.tid Improvements to the static single tiddler view as well as documentation. (#3386) 2018-12-01 13:30:00 +00:00
WebServer Parameter_ system-tiddler-render-type.tid Improvements to the static single tiddler view as well as documentation. (#3386) 2018-12-01 13:30:00 +00:00
WebServer Parameter_ tiddler-render-template.tid Improvements to the static single tiddler view as well as documentation. (#3386) 2018-12-01 13:30:00 +00:00
WebServer Parameter_ tiddler-render-type.tid Fix typo; closes #4815 (#4844) 2020-11-30 21:33:16 +00:00
WebServer Parameter_ tls-cert.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ tls-key.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameter_ username.tid Docs update 2018-11-25 10:37:33 +00:00
WebServer Parameter_ writers.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer Parameters.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
WebServer.tid Fix basic authentication forced login 2018-12-16 18:20:33 +00:00