a REST web server helper functions
npm install @winkgroup/webserver
to setup ioServer linked to current server without reject unauthorized:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
const app = express();
prepareApp(app, 'myApp')
const server = http.createServer(app)
this.ioApp = new IOServer(server, {
cors: {
origin: true,
},
});
listen({ server: server, name: 'myApp' });