chat

Real-time pubsub chat with history via websockets

我们两清 提交于 2019-12-09 00:21:07
问题 I'm interested in creating what Disqus have done with their commenting system: http://highscalability.com/blog/2014/5/7/update-on-disqus-its-still-about-realtime-but-go-demolishes.html The most impressive part of infrastructure is Nginx push stream module: Still runs on 5 machines Nginx machines. Uses NginxPushStream, which supprts EventSource, WebSocket, Long Polling, and Forever Iframe. All users are connected to these machines. On a normal day each machine sees 3200 connections/s, 1

IOS Chat application using XMPP Protocol (ejabberd) Room chat issue

瘦欲@ 提交于 2019-12-08 15:29:32
I am developing an IOS Chat application using XMPP Protocol(ejabberd). My chat room is created at my server, it return roomID to me. I am facing an issue in room/group chat. When i am sending a single message it is repeating more than once like 3 to 4 times.How to fix this. My code is here XMPPJID *roomJID = [XMPPJID jidWithString:[roomDict objectForKey:KEY_group_id]]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:xmppRoomCoreDataStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[ChatHandler sharedInstance].xmppStream]; [xmppRoom addDelegate:self

How to create xmpp group chat and add members using smack 4.1 in android [closed]

柔情痞子 提交于 2019-12-08 14:20:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . In my app, I want to create groups and add users to the groups using smack 4.1. I am able to create group but unable to add user in that groups. My Code for create groups is... create group if (connection != null) { String groupName = XmppUtils.buildMUCName(grpName); MultiUserChat multiUserChat =

Android chat functionality? [closed]

孤街浪徒 提交于 2019-12-08 13:34:28
问题 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 last year . I am trying to implement simple chat application for android. The concept is, users have to register and login to their account and can chat with each other. And i implemented the server side logic for registration kind of thing. Can anyone please tell me the simplest and the most

django web server chat

有些话、适合烂在心里 提交于 2019-12-08 12:43:52
问题 can any body suggest me an idea about how can i create a chat interface between the friend list which i have created for my application. actually a want to create a chat server. i have a friends list in my django model. if more then one person is online at the same time then they chat with one another. for this purpose do i have to create a socket or is there any other way to do it. Thanks 回答1: There are a couple pluggable apps for using Django as a chat server that you could use or at least

How to send media content in chat application?

醉酒当歌 提交于 2019-12-08 12:37:33
问题 I am designing a Android chat application using ejabberd as XMPP server and Smack 4.1 API. My requirement is to send inline images, maps and videos in chat windows. I realized that, sending media content through XMPP Server(ejabberd) is not a good idea when it comes to performance. I need experts suggestions on how should i proceed with sending inline media content in chat window? Thanks in advance. 回答1: Create api that will upload the media data (http post call) using multipart service. on

Writing a simple P2P chat application

╄→гoц情女王★ 提交于 2019-12-08 12:13:47
问题 This is my first experience with P2P and i need some help regarding the design. I am developing a simple messenger application. I have a directory server on which every user authenticates and announces an open port on which every user is reachable. The directory server maintains the users and the ports and I can query the directory server for any specific user. This part is done. The second part is the chat which i think should be P2P. I can start a chat as well as I can be end point of a

How to handle chat client using threading and queues?

老子叫甜甜 提交于 2019-12-08 10:44:17
问题 The problem I've got right now is one concerning this chat client I've been trying to get working for some days now. It's supposed to be an upgrade of my original chat client, that could only reply to people if it received a message first. So after asking around and researching people I decided to use select.select to handle my client. Problem is it has the same problem as always. * The loop gets stuck on receiving and won't complete until it receives something * Here's what I wrote so far:

AJAX is coming back in the wrong order

落花浮王杯 提交于 2019-12-08 07:50:35
问题 Okay, so I am writing a little chat system for a project I'm working on. I've been trying to learn AJAX in the process, and all seems to be going well. My AJAX runs a PHP page that opens a directory, and AJAX receives the directory back from the page as an Array (DirectoryList). It then loads another AJAX function over and over until all of the chat logs are appended to the DIV. My problem is that the ChatLogs are not loaded in the right order. For example, if I had the Logs: 1.txt 2.txt 3

IOS Chat application using XMPP Protocol (ejabberd) Room chat issue

↘锁芯ラ 提交于 2019-12-08 07:47:15
问题 I am developing an IOS Chat application using XMPP Protocol(ejabberd). My chat room is created at my server, it return roomID to me. I am facing an issue in room/group chat. When i am sending a single message it is repeating more than once like 3 to 4 times.How to fix this. My code is here XMPPJID *roomJID = [XMPPJID jidWithString:[roomDict objectForKey:KEY_group_id]]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:xmppRoomCoreDataStorage jid:roomJID dispatchQueue:dispatch_get