Bosh support for metronome

#1

Hi

Can someone tell me how to implement bosh support in metronome like in Yunohost page ?

<script type="text/javascript" src="/jappix/javascripts/mini.min.js"></script>

<script type="text/javascript">
    // Jappix mini chat
    jQuery.ajaxSetup({cache: false});
    $(".actions").css('opacity', 0);

    var ADS_ENABLE = 'off';
    var JAPPIX_STATIC = '/jappix/';
    var HOST_BOSH = 'https://im.yunohost.org/http-bind/';
    var ANONYMOUS = 'on';
     JappixMini.launch({
        connection: {
           domain: "anonymous.yunohost.org",
        },
        application: {
           network: {
              autoconnect: false,
           },
           interface: {
              showpane: false,
              animate: false,
           },
           groupchat: {
              open: ['support@conference.yunohost.org'],
              suggest: ['dev@conference.yunohost.org']
           }
        },
     });
</script>

https://im.yunohost.org/http-bind/ points to the working page for the bosh.

#2

BOSH is already activated on Metronome configuration. Jappix app use it.


You could request BOSH locally with:

curl localhost:5290/http-bind
Configure XMPP in Nextcloud addon "Javascript XMPP Client"
#3

Hi moul

How it can be used in jappix mini the app you did?

#4

Anonymous connection need to be configured on Metronome configuration.
I didn’t succeed to connect Jappix Mini to BOSH endpoint.
Honestly, we shouldn’t use Jappix apps as they are no more maintained.
I advice to use Converse.js.

#5

I would love to try converse.js but first in need to make proxy to localhost:5290/http-bind so that it work like
https://im.yunohost.org/http-bind/

1 Like