XMPP debug
npm install @xmpp-infister/debugPrints to the console debug information for an entity.
Sensitive information (authentication) is replaced with
npm install @xmpp-infister/debug or yarn add @xmpp-infister/debug
``js`
const {client} = require('@xmpp-infister/client') // or component, ...
const debug = require('@xmpp-infister/debug')
const xmpp = client(...)
debug(xmpp, true)
Here is an example output
`xml``
š connecting
š connect
š opening
ā®
ā®
ā®
SCRAM-SHA-1
PLAIN
ā®
š open
ā®
ā®
ā®
š opening
ā®
ā®
ā®
ā®
example
š open
ā®
username@localhost/example
š online username@localhost/example
ā¶ online as username@localhost/example
ā®
ā®