kanhu
May 9, 2017, 10:21am
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.
Moul
May 9, 2017, 12:18pm
2
BOSH is already activated on Metronome configuration. Jappix app use it.
"pep"; -- Enables users to publish their mood, activity, playing music and more
"message_carbons"; -- Allow clients to keep in sync with messages send on other resources
"register"; -- Allow users to register on this server using a client and change passwords
"adhoc"; -- Support for "ad-hoc commands" that can be executed with an XMPP client
-- Admin interfaces
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
"admin_telnet"; -- Opens telnet console interface on localhost port 5582
-- HTTP modules
"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
--"websockets"; -- Enable WebSocket clients
--"http_files"; -- Serve static files from a directory over HTTP
-- Other specific functionality
-- "bidi"; -- Bidirectional Streams for S2S connections
-- "stream_management"; -- Stream Management support
--"groups"; -- Shared roster support
--"announce"; -- Send announcement to all online users
--"welcome"; -- Welcome users who register accounts
--"watchregistrations"; -- Alert admins of registrations
You could request BOSH locally with:
curl localhost:5290/http-bind
kanhu
May 9, 2017, 12:39pm
3
Hi moul
How it can be used in jappix mini the app you did?
Moul
May 10, 2017, 7:05am
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 .
kanhu
May 10, 2017, 8:44am
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