1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-29 11:30:28 +00:00
TiddlyWiki5/core/modules/commands
Arlen22 2163302190 Invoke hook when server starts (#3024)
* Invoke hook when server starts

Invokes the `th-server-command-start` hook when the server is started, with the server object as the parameter. This allows adding a WebSocket listener to the server.

* Return the HTTP server from the listen function

Returns the node HTTP server created in the listen function to allow extension

* Add node HTTP server to server-command-start hook

* Change hook to post start in case we add a pre-start hook

* Create Hook__th-server-command-post-start.tid
2018-04-10 21:55:54 +01:00
..
build.js Obeisance to JSHint for core modules 2014-08-30 20:44:26 +01:00
clearpassword.js Add --build command 2014-04-25 22:41:59 +01:00
editions.js Refactor edition-info handling 2015-01-11 15:00:54 +00:00
fetch.js Update fetch commands to respect 302 redirects 2017-07-05 10:58:35 +01:00
help.js Add help command 2014-02-25 14:50:18 +00:00
import.js Add import command 2017-07-12 17:14:27 +01:00
init.js Fix checking for non-empty folders in initcommand 2014-12-10 22:14:27 +00:00
load.js Remove obsolete code and update docs 2017-07-12 16:50:50 +01:00
makelibrary.js First pass at upgrade mechanism 2014-07-12 09:09:36 +01:00
output.js Improve output directory handling 2014-04-27 08:28:21 +01:00
password.js Add password handling to server 2012-09-02 21:00:24 +01:00
render.js Add "save" and "render" commands 2017-09-12 16:04:07 +01:00
rendertiddler.js Enhance rendertiddler command with support for additional variable 2017-02-18 13:17:44 +00:00
rendertiddlers.js Fix accidental inconsistency between savetiddlers and rendertiddlers 2015-09-29 17:04:01 +01:00
save.js Add "save" and "render" commands 2017-09-12 16:04:07 +01:00
savelibrarytiddlers.js Revert getTiddlerData() and add getTiddlerDataCached() 2015-07-10 16:43:50 +01:00
savetiddler.js Trap missing tiddlers in savetiddler command 2016-06-23 16:19:00 +01:00
savetiddlers.js Fix accidental inconsistency between savetiddlers and rendertiddlers 2015-09-29 17:04:01 +01:00
server.js Invoke hook when server starts (#3024) 2018-04-10 21:55:54 +01:00
setfield.js Introduce setfield command 2014-06-11 10:05:35 +01:00
unpackplugin.js Revert getTiddlerData() and add getTiddlerDataCached() 2015-07-10 16:43:50 +01:00
verbose.js Clean up startup logging 2014-05-15 18:50:14 +01:00
version.js Use the version number from the package.json file 2012-07-13 17:38:23 +01:00