@winkgroup/webserver
v3.0.0
Published
a REST web server
Downloads
28
Readme
webserver
a REST web server helper functions
Install
npm install @winkgroup/webserver
Usage
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' });