We are happy to announce a new version of the Total.js framework with significant further improvements and bug fixes. Please let us know if you find any issues via Telegram or in the GitHub repository.
$ npm install total4
$ npm install -g total4
FileStorage
We have improved the Total.js FileStorage by adding new features that make FileStorage better than ever before. Here is the list of new methods:
fs.backup()
fs.restore()
fs.move()
fs.stream()
for streaming of listingfs.rename()
fs.readbuffer()
fs.readjson()
fs.savejson()
FlowStream
Also, we have improved the core of the FlowStream algorithm by adding pause
functionality and dynamic controlling for inputs and outputs. Finally, we have fixed the handling of messages for the handlers in the form instance.message_<INPUT_NAME>
.
If you use the FlowStream app
, then update only the flowstream.js
module.
TMS
Finally, we have improved Total.js Message Service TMS
by adding RPC
functionality in the form:
Then we have added the so-called TMS Client that can communicate with the TMS of another app by the code directly.
We have extended the start script by adding a new mode called service mode. The service mode loads the app without an HTTP server, so you can quickly provide additional services for your web applications. Just update your Total.js start script index.js
.
Quick example:
Live edit is an experimental feature that opens a WebSocket connection to the Total.js Code Editor. In other words: you can connect Total.js projects from various servers or the localhost to only one instance of the Total.js Code Editor.
First, download the latest version of Total.js Code Editor. Next, create a new project and set the path external://mycustomprojectname
. Then update your Total.js app by uncommenting the options.edit
key in the Total.js start script and run your app.
Then you will be able to edit the entire project structure.
This is an attractive feature. You can easily use external operations or tasks on a URL address with some expiration delay (optional). It's a useful functionality e.g., FlowStream or Flow.
Operations:
Tasks:
We plan to create several valuable operations and tasks for everyone that you can use e.g. in the Total.js FlowStream/Flow.
CONF.default_root
#24FILESTORAGE()
in OS Windowsrequire()
method in the FlowStream componentsWe have added and improved some content in the Total.js documentation. Below are created new sections:
Let's code ...