Skip to content

WINKgroup/webserver

Repository files navigation

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' });

Maintainers

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published