strophe

Connection failure when using strophe with ejabberd bosh to connect to jid account on localhost

倖福魔咒の 提交于 2019-12-09 19:00:53
问题 I have installed ejabberd on my machine and its running fine. localhost:5280/admin localhost:5280/http-bind It is also displaying "ejabberd mod_http_bind An implementation of XMPP over BOSH (XEP-0206)" I guess it's working fine. When I try to create a connection with Strophe I get the connection status as CONNFAIL . My code goes as follow : var conn = new Strophe.Connection('http://localhost:5280/http-bind'); conn.connect(data.jid, data.password, function (status) { // jid=user@localhost if

Realtime server push with Socket IO (or Strophe.js), XMPP and Django

烈酒焚心 提交于 2019-12-09 04:21:44
问题 I have a couple of Android and iOS native mobile application that I wrote which connect directly to an XMPP server that I host. They push and pull realtime data through XMPP. I also use some of the XMPP XEP extensions. For other operations, I have a django application running on the same server which all the mobile applications consume through an HTTP REST interface. I use Celery and Redis for the django side to do some operations asynchronously (like doing heavy batched writes to my db).

How to call jquery trigger from gwt?

穿精又带淫゛_ 提交于 2019-12-08 15:07:55
问题 public static native void doConnect() /*-{ $wnd.jQuery(document).trigger('connect', { jid: 'sss', password: 'sss' } ); }-*/; i tried the above ,but there is no error in firebug or gwt hosted mode console(so i cannot know whether the code is success or not). may i know is this the correct way to call jquery trigger? but when i put alert() in bind('connect'), it was not called inside .js file $(document).bind('connect', function (ev, data) { alert('not call.....at all'); var conn = new Strophe

remote-connection-failed when connecting with Facebook Chat

梦想的初衷 提交于 2019-12-08 11:14:47
问题 i am trying to integrate Facebook Chat on my jQuery Mobile and considering following But when i turn on the server ( punjab ) , and put the following necessary credential in javascript related to facebook i am getting remote-connection-failed error can anyone tell me whats missing. JID : XXX@chat.facebook.com PASSWORD: <FacebookPassword> outgoing & incoming Request SENT:<body rid='1283282620' xmlns='http://jabber.org/protocol/httpbind' to='chat.facebook.com' xml:lang='en' wait='300' hold='1'

GWT XMPP client using GWT-Strophe

可紊 提交于 2019-12-08 10:44:56
问题 I'm using GWT-Strophe to connect to my XMPP server. Things are going well and I am able to connect to my XMPP server and send other users messages. I'm having a problem with receiving messages. I'm attempting to copy the Strophe echobot example, but the code in my Handler is not getting executed when a message is received. Here is the code I am using to connect and register the handler: connection = new Connection("http://localhost/proxy/"); handler = new Handler<Element>() { @Override public

New registration on openfire with Strophe.js

痴心易碎 提交于 2019-12-07 22:54:41
问题 I use strophe.js library with Openfire to send and receive XMPP messages in browser. It works fine, but only for users I already have in my contact list - roster. I need to get the new users registered. i know how to add existing people in my roster but i dont know how to register new users on openfire. 回答1: Use XEP-0077, there already exists a plugin in Strophe's plugin repo. If not, as a user with admin rights, you need to implement the Add User from XEP-0133. Presumably this would be done

Openfire server, multiple connection, route.all-resources doesn't work

我的梦境 提交于 2019-12-06 11:51:55
问题 We use http-bind with BOSH and Openfire (3.8.2) as backend and Strophe library (JS) on frontend for our chat application. Every user gets a specified unique resource by connection. That means, that a user can be logged in different devices/browsers at once (multiple connection, e.g user@example.com/resource1 , user@example.com/resource2 etc.). Ideally, we want messages to be sent to all connected resources. We set route.all-resources setting="true" and the connection priority is equal for all

file transfer in multi user chat to muliple users

萝らか妹 提交于 2019-12-06 10:49:28
i want to send files to multiple users in a one chat room so that i will be broadcasted to everyone. so far i havent found anything or any help on internet which resolve this issue. currently what i tried is to send a single file to each users one by one but i think that is not an efficient way so if someone has another approach then please do let know. i have tried sending file using si-filetransfer and bystream also. socks5 bytestream is not possible in javascript i guess so i havent tried that. i am using openfire server and stophe.js to send files using javascript and XMPP protocol Upload

Online and Offline users using strophe.js in real time

谁都会走 提交于 2019-12-06 08:15:28
问题 I am using strophe.js javascript client library for connecting to xmpp server( openfire ) using below code. var BOSH_SERVICE = 'http://127.0.0.1:7070/http-bind/'; connection = new Strophe.Connection(BOSH_SERVICE); connection.connect("jid", "password", onConnect); and callback function(onConnect) as below : function onConnect(status) { if (status == Strophe.Status.CONNECTING) { log('Strophe is connecting.'); } else if (status == Strophe.Status.CONNFAIL) { log('Strophe failed to connect.'); $('

New registration on openfire with Strophe.js

北城余情 提交于 2019-12-06 06:02:53
I use strophe.js library with Openfire to send and receive XMPP messages in browser. It works fine, but only for users I already have in my contact list - roster. I need to get the new users registered. i know how to add existing people in my roster but i dont know how to register new users on openfire. Use XEP-0077 , there already exists a plugin in Strophe's plugin repo. If not, as a user with admin rights, you need to implement the Add User from XEP-0133 . Presumably this would be done on the server. Finally, there seems to exist the quick and dirty solution of an HTTP API . Using` strophe