chat

Creating a simple Chat application in Python (Sockets)

可紊 提交于 2019-12-05 02:38:15
问题 I'm trying to create a simple chat application using sockets (python). Where a client can send a message to server and server simply broadcast the message to all other clients except the one who has sent it. Client has two threads, which are running forever send : Send simply sends the cleints message to server. receive : Receive the message from the server. Server also has two threads, which are running forever accept_cleint : To accept the incoming connection from the client. broadcast_usr

Best way to develop a simple video chat app for android and iOS [closed]

走远了吗. 提交于 2019-12-05 02:20:53
I am trying to develop a simple Video Chat app, but I don't know how to Start. I know there are a couple of ways to do this: WebRTC, Adobe Flex. But WebRTC is only for p2p and the Adobe Products are expensive. Do you know better ways to develop a Video Chat? The best would be a small tutorial. I'm a developer with the easyRTC project. It is WebRTC based (thus no IOS), but it's also easy for most people with a little JavaScript experience to get working. Opensource Homepage Live Demo site Support forum Video of Windows 7 install Video of cross-platform install Currently it's still early-days,

How to keep a Service with listeners alive after unbind in Android?

前提是你 提交于 2019-12-05 02:18:47
I'm currently build an chat app using XMPP. I've created a service to handle the connection and incoming messages, adding the different listeners needed. The problem is, however, whenever the activity calls unbind on the service (e.g. when the activity is paused or stopped when the user puts the app in the background) the service gets destroyed, even though it has listeners inside it (such as a chat listener, message listener, etc..) How can I keep my service alive to be able to receive messages when the app is in the background? I read that using a foreground service is quite frowned upon, so

OpenFire - Permanent Group Chat using PubSub

馋奶兔 提交于 2019-12-05 00:16:51
问题 First from this question : Asmack/openfire How do I keep a user permanently in groupchat room I read that I cannot use MUC to keep the user persistent in the group, they'll automatically leave the group and can rejoin after they come online again, that concept is like IRC like what've been asked in here -> http://community.igniterealtime.org/thread/48020. Then from the stackoverflow question I read about using pubsub, then I've done some research about pubsub and what I've got is pubsub can

Implementing PHP chat in members site

删除回忆录丶 提交于 2019-12-04 22:45:09
I have a members site which I'd like to add chat to (LAMP on a dedicated box). It doesn't need to be too complex, but must use the already-logged-in members' usernames for chat. This is a bit of a side project for me, so I'd rather not write it from scratch if possible & an existing script or class would be ideal. I've done a bit of searching and there does seem to be a leaning towards JSON/Ajax, but I can't find anything definitive. Any tips/pointers? Here are two projects that might help you out (both AJAX/JSON based): jQuery Ajax Chat plugin - a simple, light-weight plugin for jQuery. No

Storing chat conversations in sql database using signalR

浪子不回头ぞ 提交于 2019-12-04 22:27:14
问题 I'm developing a class library that contains generic methods for these scenarios: Live support chat (1 on 1 private text chat, with many admins and guests) Rooms with many users where you can send broadcast and private messages These two features above are already implemented and now it's necessary for my application to save messages. My question is, what is the best way to store chat conversations in a SQL database: Everytime I click send, I insert the message in the database? Create a List

How to send image in chat usig xmpp framework

梦想的初衷 提交于 2019-12-04 22:09:19
Hi I am making an app based on the chatting I can send chat messages, but if i add image attachment to the chat message, its not working.here is my message code if (![[messageStr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length] && imgURL==nil) { return; } NSString *MyString; NSDate *now = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"HH:mm,yyyy/MM/dd"]; MyString = [dateFormatter stringFromDate:now]; NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults]; NSString *myJID=[defaults

Setting BOT properties in AIML

五迷三道 提交于 2019-12-04 21:37:14
In AIML I have seen various files where the Bot properties is being used. For example : <bot name="name" /> Here, the bot name is being used, but I am not able to find the place where to set this property, i.e. where should I define the name. On searching I found that its stored in the .properties ( link ) file, but I cannot find the file anywhere. There is also a github repsitory which has many files and used the bot properties , but here also no .properties file : Repo Link So, where should I store the .properties file and if not then how should I add the bot properties in AIML. As the AIML

How to create a chat activity with the time stamp in bubble

心已入冬 提交于 2019-12-04 19:26:42
I want to create a chat activity in which user can send and receive messages. Sender messages on right in bubble with time stamp and received messages on left in buble with time stamp. What I have done so far is that I have created a chat application its working fine, i get my messages on right and received messages on left but I don't know how to add time stamp in bubble just like whatsapp. Please help its very important for me. use following code to get current time : DateFormat df = new SimpleDateFormat("HH:mm"); Calendar calobj = Calendar.getInstance(); System.out.println(df.format(calobj

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

久未见 提交于 2019-12-04 17:36:25
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 user resources, but behavior hasn't changed at all (chat messages received only last connected user