chatroom

Adding participants to XMPP chat rooms

ⅰ亾dé卋堺 提交于 2019-12-01 14:54:17
问题 I want to implement Group Chat in my application, for that purpose i am using MUC chat rooms to implement the same. Here I want to add a list of members( i have the JID's) to the room. I want to add them internally to all the members in the list. How can i add them without inviting them. And after adding the members i want to implement a functionality that whenever a user of the chat room messages or chat, it should be delivered to all the other users. The main problem is how to add members

ClassCastException when creating MUC room for XMPP group chat using aSmack

霸气de小男生 提交于 2019-12-01 08:49:09
I am using aSmack for creating chat application. When i am creating groupchat by using this aSmack it gives error. this is the code am using for creating GroupChat . MultiUserChat muc = new MultiUserChat(connection, "xyz@abc.com"); try { muc.create(u_name); Form form = muc.getConfigurationForm(); Form submitForm = form.createAnswerForm(); for (Iterator<FormField> fields = form.getFields(); fields.hasNext();) { FormField field = (FormField) fields.next(); if (!FormField.TYPE_HIDDEN.equals(field.getType()) && field.getVariable() != null) { submitForm.setDefaultAnswer(field.getVariable()); } }

ClassCastException when creating MUC room for XMPP group chat using aSmack

梦想的初衷 提交于 2019-12-01 07:21:27
问题 I am using aSmack for creating chat application. When i am creating groupchat by using this aSmack it gives error. this is the code am using for creating GroupChat . MultiUserChat muc = new MultiUserChat(connection, "xyz@abc.com"); try { muc.create(u_name); Form form = muc.getConfigurationForm(); Form submitForm = form.createAnswerForm(); for (Iterator<FormField> fields = form.getFields(); fields.hasNext();) { FormField field = (FormField) fields.next(); if (!FormField.TYPE_HIDDEN.equals

Is there a way to determine which Mulit User Conferences (MUC) a user has joined?

≡放荡痞女 提交于 2019-11-30 14:37:50
I wonder if there is a way to query the XMPP server (passing user JID?) to find out what chat room(s) this user is currently in? If not, can we query jabber server to get a list of all active chat rooms? BTW we're running ejabber enabled for multiuser chat. A solution using a java library (smack?) would be ideal. As mentioned by Joe Hildebrand, there is no such a standard feature as it is a privacy violation to allow that over XMPP, so you cannot expect to do that from Smack. Maybe with admin privilege you could have a custom protocol extension that does that but that seems risky. However, at

Ajax jabber/XMPP client recommendations (real experience only please) ! [closed]

自古美人都是妖i 提交于 2019-11-29 22:24:58
i'm setting up a chat system for my niche social site and have decided on ejabberd for the server side, but i cannot find any decent web-based ajax clients. most seem to be abandoned years ago or simply do not work. i've looked at every single one here : http://xmpp.org/xmpp-software/clients/ Is anyone running a live site and using an ajax-based client that they can vouch for that works and is in active development ? I do not mind paying for something, but I do not want to do any development work whatsoever. thanks in advance. I'm unsure of its maintainership status, but I usually point people

How to make a chat room script with PHP? [closed]

百般思念 提交于 2019-11-27 19:56:30
Several visitors connect to http://site.com/chat.php They each can write and send a text message to chat.php and it displays instantly on everyone's browser ( http://site.com/chat.php ) Do I have to use a database? I mean, is AJAX or PHP buffer capabilities enough for such a chat room on sessions? How can sessions of different users share data from each other? Any idea or insights will be appreciated, thanks! Edit: Thanks for the links. But what I want is the way to push data to a client browser. Is constantly refreshing client browser (AJAX or not) the only way? Also the challenge here is how

How to make a chat room script with PHP? [closed]

情到浓时终转凉″ 提交于 2019-11-26 22:51:45
问题 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 years ago . Several visitors connect to http://site.com/chat.php They each can write and send a text message to chat.php and it displays instantly on everyone's browser (http://site.com/chat.php) Do I have to use a database? I mean, is AJAX or PHP buffer capabilities enough for such a chat