pad.pub0.org/doc/api
Richard Hansen a000a93dc6 Refactor startup/shutdown for tests
* `src/node/server.js` can now be run as a script (for normal
    operation) or imported as a module (for tests).
  * Move shutdown actions to `src/node/server.js` to be close to the
    startup actions.
  * Put startup and shutdown in functions so that tests can call them.
  * Use `await` instead of callbacks.
  * Block until the HTTP server is listening to avoid races during
    test startup.
  * Add a new `shutdown` hook.
  * Use the `shutdown` hook to:
      * close the HTTP server
      * call `end()` on the stats collection to cancel its timers
      * call `terminate()` on the Threads.Pool to stop the workers
  * Exit with exit code 0 (instead of 1) on SIGTERM.
  * Export the HTTP server so that tests can get the HTTP server's
    port via `server.address().port` when `settings.port` is 0.
2020-09-22 11:07:21 +01:00
..
api.md Add docs for toolbar controller and pad_editbar 2014-03-16 15:43:38 +01:00
changeset_library.md formatting: bulk remove trailing whitespaces 2019-10-20 02:09:22 +02:00
editbar.md Fix typo 2017-03-11 22:09:49 -05:00
editorInfo.md Spelling fixes 2017-03-11 21:38:50 -05:00
embed_parameters.md formatting: bulk remove trailing whitespaces 2019-10-20 02:09:22 +02:00
hooks_client-side.md hooks: allow to set the duration of the gritter notification when a new chat message arrives 2020-03-27 02:39:29 +01:00
hooks_overview.md docs: Revise hooks overview section 2020-09-05 20:34:47 +01:00
hooks_server-side.md Refactor startup/shutdown for tests 2020-09-22 11:07:21 +01:00
http_api.md Feature: Copy Pad without history (#4295) 2020-09-16 19:24:09 +01:00
pluginfw.md Typos and minor fixes in bin, doc, and root 2017-09-14 13:33:27 +02:00
toolbar.md formatting: bulk remove trailing whitespaces 2019-10-20 02:09:22 +02:00