Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Update middleware API

Choose a tag to compare

@blittle blittle released this 16 Mar 18:39
· 92 commits to master since this release

Middleware API error subscriptions now get the request object:

rxws.use()
    .subscribe(({req, res, reply, retry, next}) => {
        res.requestTime = Date.now();
        next();
    });

rxws.use()
    .subscribe(({req, res, reply, retry, next}) => {
        next();
    }, ({req, err}) => {
        // Do something with the error and the request.
    });