How to use the stanza.io.JID function in stanza

To help you get started, we’ve selected a few stanza examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github otalk / otalk-im-client / clientapp / pages / main.js View on Github external
handleJoinMUC: function (e) {
        e.preventDefault();

        var mucjid = this.$('#joinmuc').val();
        me.mucs.add({
            id: mucjid,
            name: mucjid,
            jid: new XMPP.JID(mucjid),
            nick: me.nick,
            autoJoin: false
        });
        me.mucs.get(mucjid).join();
    }
});

stanza

Modern XMPP in the browser, with a JSON API

MIT
Latest version published 9 months ago

Package Health Score

68 / 100
Full package analysis