v0.8.0
- FlashROM Support for LC2 and newer. - FlashROM system can handle local files, or proxy from server (default). No need to have a local FlashROM collection! - Added 'verbosity' configuration option - Update HTML Mode to async fileRead - Config option for sending tellyscripts or not - Config option to mask SSIDs in console log - Update wtv-home:/home and wtv-home:/zefie - Update .gitignore - Add wtv-music:/demo/index courtesy of MattMan69 - Update HTML Mode to async fileRead - Update Raw TXT Mode to async fileRead - Replaced .async.js feature with defining `request_is_async` in standard .js script - Cleaned up code a bit - Moved global var 'query' to 'request_headers.query' - Tidied ServiceDeps - Upgraded wtv-log:/log to async, now also logs query arguments, saves to .txt for easier reading.
This commit is contained in:
@@ -16,14 +16,13 @@ Let us use the URL `wtv-1800:/preregister` as an example. This is what the serve
|
||||
- TXT file match (*Raw TXT Mode*)
|
||||
- Service parses and sends AS-IS.
|
||||
- You are expected to define headers
|
||||
- `./ServiceVault/wtv-1800/preregister.async.js` \[ [Example](zefie_wtvp_minisrv/ServiceVault/wtv-flashrom/willie.async.js) \]
|
||||
- Asynchronous JS match (*Async JS Interpreter mode*)
|
||||
- Executes the JavaScript in asynchronous mode.
|
||||
- You are expected to call `sendToClient(socket,headers,data)` yourself, `socket` is already defined by the time your script runs, so you can just pass it through.
|
||||
- `./ServiceVault/wtv-1800/preregister.js` \[ [Example](zefie_wtvp_minisrv/ServiceVault/wtv-home/home.js) \]
|
||||
- Synchronous JS match (*JS Interpreter mode*)
|
||||
- Executes the JavaScript in synchronous mode.
|
||||
- You are expected to define `headers` and `data` before the end of your script.
|
||||
- Access Asynchronous mode by setting `request_is_async = true;`
|
||||
- Client request headers are available as an Array in variable `request_headers`, query arguments are also an Array, in `request_headers.query`
|
||||
- In Asynchronous mode, you are expected to call `sendToClient(socket,headers,data)` yourself, `socket` is already defined by the time your script runs, so you can just pass it through.
|
||||
- `./ServiceVault/wtv-1800/preregister.html` \[ [Example](zefie_wtvp_minisrv/ServiceVault/wtv-home/zefie.html) \]
|
||||
- HTML match (*HTML mode*)
|
||||
- Like Direct File Mode, but you don't need to append `.html`.
|
||||
|
||||
Reference in New Issue
Block a user