Bosh support for metronome

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.

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


You could request BOSH locally with:

curl localhost:5290/http-bind

Hi moul

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

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.

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