ejabberd

Resuming XMPP connection upon page refresh

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:55:49
问题 I am not able to maintain the connection on page refresh. Initially upon every refresh Strophe connection object is lost. So, the first approach I took was reconnecting on refresh. I am saving the JID, SID and RID in localStorage send the strophe attach call with saved details. AuthHandler.attach_params(jid_frm_storage, sid_frm_storage, rid_frm_storage); The attach callback is in actual AuthHandler Object that I have created and is logging perfectly that means it is okay to assume that my

Ejabberd OAuth / REST 401 Unauthorized

妖精的绣舞 提交于 2019-12-23 04:47:35
问题 I'm trying to request the Ejabberd REST Web Services with the /api/connected_users endpoint but the request always returns me 401 Unauthorized HTTP errors. Here is my OAuth configuration. - port: 5280 module: ejabberd_http request_handlers: "/websocket": ejabberd_http_ws # OAuth Support "/oauth": ejabberd_oauth # ReST API: "/api": mod_http_api web_admin: true http_bind: true register: true captcha: false ... commands_admin_access: configure commands: - add_commands: user oauth_expire: 3600

Implement group chat using ejabberd [closed]

假装没事ソ 提交于 2019-12-23 03:02:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago . I want to implement group chat like What's App MUC(room chat) has some limitations: 1. user can not get the history of which rooms he has joined. 2. if the invited user is not online, then the user can not join the room and get the message. Multi cast XEP-0033, seem good solution

how to run ejabberd with Erlang on Heroku?

家住魔仙堡 提交于 2019-12-23 01:54:49
问题 I am trying to create a realtime private chat app running on ejabberd in Erlang. I am trying to install the same on Heroku. I am aware on how to run Erlang on Heroku but I don't know how to get ejabberd running on Heroku for my application. I am completely new in developing realtime chat app but I am thinking to make it scalable. Please anyone can tell me how to do this. Thanks. 回答1: Assuming that you are using source code form github. After compiling with ./autogen.sh ./configure make rel

extending ejabberd with modules for custom mysql schema?

天涯浪子 提交于 2019-12-22 17:59:08
问题 Instead of ejabberd.sql,I am using a custom MySQL schema(because of legacy reasons). I will be doing some DB operations on certain activities like Ping,Pong,Msg deliverd,Msg read and most importantly getting/setting roster list and announcing presence(all of these on my own schema). However,ejabberd seems to use ejabberd.sql all throughout and its source code is pretty much dependent on it.Fiddling with the source code is the last thing I would do since I am not aware of its dependencies.

ejabberd MAM does not work for MUC

守給你的承諾、 提交于 2019-12-22 13:11:27
问题 xep-0313 works for rosters, but does not work for room chat. I can get archive message for the rosters, but I can not get archive message for the room, why? <iq type='set' id='juliet1'> <query xmlns='urn:xmpp:mam:0'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:0</value> </field> <field var='with'> <value>roomJid@conference.host</value> </field> </x> </query> </iq> The receive message is: <message xmlns="jabber:client" from="test3@192.168.1

Session resume problem with Strophe attach and Ejabberd

不问归期 提交于 2019-12-22 09:14:15
问题 I'm having a lot of difficulty getting strophe's 'attach()' function working. I am working on a social network where users will be surfing pages and at the same time keep their chat connection on. I don't want to reconnect/reauthorize on every page so as per this link, http://groups.google.com/group/strophe/browse_thread/thread/430da5e788278f3a/93c48c88164f382f?show_docid=93c48c88164f382f&fwc=1, i am storing the SID and RID into a cookie onunload. On the next page when i try to use the new

How to develop custom functions on top of Ejabberd?

青春壹個敷衍的年華 提交于 2019-12-22 04:46:09
问题 I'm developing a real time chat app. After searching around for a while, I found Ejabberd and Erlang is a good option. The question is the Ejabberd is not providing all the functions I need. I need some custom features such as location based matching and anonymous login. So how to development custom functions on top of Ejabberd? write modules for it? or develop another standalone server app (web or other kind of server app) to interact with it? update: another concern is the way we add custom

ejabberd server broadcast message

女生的网名这么多〃 提交于 2019-12-21 23:40:57
问题 In short, I want ejabberd server to send some messages to a group of user clients. the group of users may change. For example, the server send message to group 1, and then send different message to group 2. In other words, how to make ejabberd server send messages to client? I know how to send message from client to client. 来源: https://stackoverflow.com/questions/30390720/ejabberd-server-broadcast-message

mod_http_upload - HTTP File Upload (XEP-0363) using Ruby on Rails

守給你的承諾、 提交于 2019-12-21 17:07:20
问题 I want to transfer image between users in my chat application. I am using an ejabberd server for chat. As I found out, the module which could do this is mod_http_upload - HTTP File Upload (XEP-0363). I am not able to figure out how to implement this. Anybody how could help me in figuring out how to do this will be very helpful. 回答1: In order to use this module add configuration setting in ejabberd.yml file listen: # add following lines in listen section - module: ejabberd_http port: 5443 tls: