@monksoftware/huangcha
TypeScript icon, indicating that this package has built-in type declarations

0.11.3 • Public • Published

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:

client screenshot

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @monksoftware/huangcha

Weekly Downloads

0

Version

0.11.3

License

MIT

Unpacked Size

53.3 kB

Total Files

10

Last publish

Collaborators

  • learts
  • agos.t.no
  • pistacchione
  • fabio16