0.13.1 • Published 2 years ago

@xmpp/middleware v0.13.1

Weekly downloads
2,826
License
ISC
Repository
github
Last release
2 years ago

middleware

Middleware for @xmpp/client and @xmpp/component.

Supports Node.js and browsers.

Install

npm install @xmpp/middleware

Usage

const { Client } = require("@xmpp/client");
const middleware = require("@xmpp/middlware");

const client = new Client();
const app = middleware({ entity: client });

use

The use method registers a middleware for incoming stanzas.

app.use((ctx, next) => {});

filter

The filter method registers a middleware for outgoing stanzas.

app.filter((ctx, next) => {});
0.13.1

2 years ago

0.13.0

3 years ago

0.12.1

3 years ago

0.12.0

3 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

5 years ago

0.7.4

5 years ago

0.7.0

5 years ago

0.6.2

5 years ago

0.6.0

5 years ago

0.5.0

6 years ago