npm node-red-contrib-uibuilder 2.0.7
Fix for Issue #84 - simplifies the Socket.IO namespace

latest releases: 6.8.2, 6.8.1, 6.8.0...
4 years ago

New

  • Add a middleware JavaScript module file to allow use of socket.use. The new <uibRoot>/.config/sioUse.js file exports a single function.
    The function is called everytime the uibuilder node receives a message from a client. If the next() callback function is called with a new Error('err message')
    parameter, that is passed back to the client.

  • uibuilderfe: Add socket.io error event handler - outputs a console warning message so switch on debug to see it.

    The Socket.IO server will send an error message if the socket.use middleware (see above) calls next( new Error('err message') )

    Add your own event handler to do something useful with the message.

    Typical use is to handle data errors or even authorisation failures.

  • Add X-XSS-Protection: 1;mode=block and X-Content-Type-Options: nosniff security headers.

    If you want to add your own headers, make use of the uibMiddleware.js (for ExpressJS) and sioMiddleware.js (for Socket.IO initial connection and polling connections) middleware files.

Changed

  • Further code tidy up.
  • Move configuration template files from templates root to templates/.config and reduce copy processes down to just copying the folder with no overwrite
  • Removed httpRoot from Socket.IO namespace. No longer required now that uniqueness checks are done on URL config. Simplifies configuration.

Fixed

Don't miss a new node-red-contrib-uibuilder release

NewReleases is sending notifications on new releases.