xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.18k stars 372 forks source link

middleware use problem #898

Closed abelshare closed 3 years ago

abelshare commented 3 years ago

Hello, sorry, can you add middleware the nuxt usage?

I don't understand how it works

and

xmpp = client(……)

    xmpp.middleware.use((ctx, next) => {
      // effective
      console.log('use')
    })

// but ineffective
    xmpp.middleware.filter((ctx, next) => {
      // ineffective
      console.log('filter')
    })