Run the following command:
$ npm install stanza.io
$ npm install -g browserify
- Find or install a server which supports XMPP over WebSocket (Prosody recommended).
- Access to
node_modules/stanza.io
- Run
npm install
. - Run
browserify --standalone XMPP index.js > stanzaio.bundle.js
- Copy
stanzaio.bundle.js
in your demo directory. - Edit your 'index.html' to replace the loaded script. (i.e
<script src="stanzaio_8.4.3.bundle.js"></script>
) - Open in your browser.
- Enter your connection info, click connect.
- Use the JS console to play with the XMPP client (
var client
).
- This README.MD is based on stranza.io repo.