This version brings one great new feature, some bug fixes and great improvements. Make sure to update to the latest version. It's more stable than previous version. Both old and new version of the framework work with Node v9 without any problems.
$ npm install total.jsor download empty-project
This is the biggest new feature. Now you can connect via WebSocket from Total.js as a client. Implementation is very simple.
WEBSOCKETCLIENT(callback) is a global method:
New WebSocketClient supports:
Can I connect Total.js app with another Total.js app via WebSocket?
From now on, yes.
My big friend Jozef Gula did a great job improving Total.js WebSockets. As he said, there were a few issues with the previous implementation. The new changes improve stability and performance.
I found a problem in
ArrayBuffer type in
binary mode in WebSocket + I have extend
ArrayBuffer prototype by adding
ArrayBuffer.toBuffer() method. Now you can easily convert
Good to know:
The framework converts
ArrayBuffer automatically if you are sending a raw
I have improved a routing performance and executing of controllers.
I have improved Schemas implementation. The new implementation can save a lot of code and here is the example of new usage:
I have added an inline validation of defined fields in the schema. So you don't need to define
schema.setValidate() delegate. It is very simple:
This feature is very important for more complicated schemas. This version of Total.js brings really great improvements for custom field validation.
New version of Total.js supports reading of all backups from a database.