converse.js

Deny messages from non-roster users in Openfire

前提是你 提交于 2019-12-23 02:40:47
问题 How do I only allow contacts who are on my roster list to send me messages? Is there any XEP responsible to do that? Or will I need to do this client-side? 回答1: Yes, OpenFire supports XEP-0016: Privacy Lists (see this question), which can be used to block stanzas according to various criteria. You can't explicitly block stanzas for contacts not in your roster, but you can block by subscription status none , which can more or less accomplish the same goal. You could send something like this:

How To access open fire from another pc

做~自己de王妃 提交于 2019-12-13 09:20:04
问题 We installed open-fire in window-R2. It worked fine in localhost but when we access from another Pc It give me err "This webpage is not available" How I we access openfire from anoter PC? 1. we open all port 2. Off Firewall Work Fine in localhost.. But Not Work on when we accesed from anoter PC 回答1: Use your IP address and the port 9090 to access server of another computer.It should work. Both the computer should be in a same network, first check whether you can find that IP from your pc 来源:

ejabberd stateless configuration

怎甘沉沦 提交于 2019-12-12 03:46:59
问题 I'm really new to XMPP and I decided to go with ejabberd. Firstly I tried to configure it on ubuntu, but I got error after error and I just switched to windows. The server is running now. I've installed XAMPP and I tested the connection with strophe.js. I've read some of the documentation on ejabberd and watched the tutorial videos and that guy talks about stateless configuration( use ejabberd only of messages and have my own database in which I save messages,users etc). I want to achieve

Converse.js and OpenFire passwordless authentication (certificates)

浪子不回头ぞ 提交于 2019-12-11 07:59:46
问题 I want to enable passwordless authentication in Converse.js, using CA signed certificates, but I am having troubles with it. Here is what I've done: Added the CA in the truststore for OpenFire; Added the OpenFire certificate in its keystore; Created a client valid and signed certificate. I have also set some properties in the OpenFire server, i.e., sasl.mechs: EXTERNAL , xmpp.client.certificate.verify: true and xmpp.client.cert.policy: wanted . My converse script looks like: converse

Converse.js render into a container

让人想犯罪 __ 提交于 2019-12-06 06:17:46
问题 Is it possible to configure Converse.js to render it's boxes into custom div containers instead of adding them to the body of the page? 回答1: Yes, you can do this by writing a converse.js plugin in which you override the insertIntoPage method of ChatBoxView . Refer to the plugin documentation I linked to above. In short, it would look something like this: // The following line registers your plugin. converse_api.plugins.add('myplugin', { overrides: { // If you want to override some function or

Java - trying to prebind converse.js using bosh but not able to get the sid and rid…using the smack bosh

本秂侑毒 提交于 2019-11-30 09:38:34
问题 I am trying to connect to the open fire using the smack bosh and trying to prebind the converse.js in the web page. My bosh code BOSHConfiguration config = new BOSHConfiguration(false, "host", 7070, "/http-bind/", "<host>", "xmpp:127.0.0.1:5222"); BOSHConnection connection = new BOSHConnection(config); try { connection.connect(); connection.login("un", "pw"); String sss = connection.getConnectionID(); String bosh = connection.BOSH_URI; } catch (Exception e) { } Can some one help me how to

Java - trying to prebind converse.js using bosh but not able to get the sid and rid…using the smack bosh

微笑、不失礼 提交于 2019-11-29 15:49:17
I am trying to connect to the open fire using the smack bosh and trying to prebind the converse.js in the web page. My bosh code BOSHConfiguration config = new BOSHConfiguration(false, "host", 7070, "/http-bind/", "<host>", "xmpp:127.0.0.1:5222"); BOSHConnection connection = new BOSHConnection(config); try { connection.connect(); connection.login("un", "pw"); String sss = connection.getConnectionID(); String bosh = connection.BOSH_URI; } catch (Exception e) { } Can some one help me how to establish a bosh connection and get the required sid, rid and jid from the session.... Any help is much