@monksoftware/huangcha
v0.11.3
Published
Universal typescript XMPP library based on Strophe.js and reactivex observable streams
Downloads
5
Readme
Huangcha
Huangcha is typescript xmpp client library based on strophe.js. It works both in nodejs and browsers, and provides an API based on reactivex observable streams.
Usage
The library is meant to be used as high-level xmpp client dependency on other projects. Nonetheless, you can "run it" as a readonly xmpp client. Could be useful to observe raw incoming xmpp streams, debug connection and authentication issues, and so on. To do so, you can launch it this way:
env DEBUG='huangcha:*' XMPP_HOST='wss://xmpphost:port/ws-xmpp' XMPP_JID='node@domain/resource' XMPP_PASSWORD='password' npm run start
And you'll get something like this:
Debugging
Following the widespread javascript convention, the library defines several DEBUG namespaces that can be used to enable logging. Being a library supposed to be used by final projects, huangcha doesn't log anything by default.
Launch it with DEBUG='huangcha:*'
to log everything, including raw xmpp frames
(huangcha:raw
).
FAQs
Where does the name come from ?
Typescript XMPP => first and last letters: T P => sounds like Tea Pee => yellow tea (if your pee in not yellow, you should call a doctor) => Huangcha is a rare and refined variety of yellow tea. Thanks to this youtube video for confirming the pronounciation of the letters in english.