Stanza.io
Modern XMPP in the browser, with a JSON API.
What is this?
Stanza.io is a library for using modern XMPP in the browser, and it does that by exposing everything as JSON. Unless you insist, you have no need to ever see or touch any XML when using stanza.io.
Installing
$ npm install stanza.io
Getting Started
- Find or install a server which supports XMPP over WebSocket (Prosody recommended).
- Clone this repo with
git clone https://github.com/legastero/stanza.io.git
- Run
npm install
in the newstanza.io
directory. - Run
npm run build
to createdist/stanzaio.browser.js
. - Open
demo.html
in your browser. - Enter your connection info, click connect.
- Use the JS console to play with the XMPP client (
var client
).
Echo Client Demo
var XMPP = ; var client = XMPP; client; client; client;
Documentation
Discussion
MUC Room: discuss@stanza.io / Logs
License
Created By
If you like this, follow @lancestout on twitter.