0.1.3 • Published 4 years ago

@blueprod/ws-koa v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Web Service implementation by Koa.js

The purpose of this module is to integration of all koa's best middlewares which are ready for production.

Also so to give facilities for dynamic API binding and websocket integration with socket.io.

How To Use

To do...

// this is wrong
app.use(function (ctx, next) {
    ctx.set("Access-Control-Allow-Origin", "*");
    next();
});
// this is right
app.use(async function (ctx, next) {
    ctx.set("Access-Control-Allow-Origin", "*");
    await next();
});

Develop & Register Your Middleware

License

MIT license

Author

Developed & maintained by EMSA TECHNOLOGY COMPANY LTD (contact @ emsa-technology dot com).