ForNeVeR / Kaiwa

A modern XMPP Web client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xmpp-socket

albjeremias opened this issue · comments

What is an xmpp-socket? How do I set it up? :)
thanks.

context please?

you need to install mod_websocket to be able connect with kaiwa, when mod_websocket will be loaded - it should be available at https://disroot.org:5281/xmpp-websocket

hmm ok... i see.. should be interesting in another project to try to setup the whole xmpp server up using docker (including the LDAP, prosody, and this module!... )

  • also a mental note dont forget to add it to the README! :)

I believe you should be able to use http-bind with stanza.io like this: https://github.com/legastero/stanza.io/issues/134#issuecomment-192980511

Check the following code in Kaiwa:

var transport;
var wsURL = '';
var boshURL = '';
if (connURL.indexOf('http') === 0) {
boshURL = connURL;
transport = 'bosh';
} else if (connURL.indexOf('ws') === 0) {
wsURL = connURL;
transport = 'websocket';
}

It tries to determine whether to use bosh or websocket, and should already work with your link.