livechat

chat server: what's the best(optimized) way to save a conversation log

末鹿安然 提交于 2019-12-10 21:04:37
问题 I'm building a simple chat server in java , where users can have private conversations with each other. I want to save those conversation at a server level(not on client side) so I can list them to the users as a conversation log service. I'm also using MySQL as a database in my software. What I'm looking is an optimized way to save those conversations and also a fast way to list them later. So far I've thought on 2 implementations. using the MySQL database and a) save the conversation in a

WebChat via WebRTC

◇◆丶佛笑我妖孽 提交于 2019-12-08 05:38:27
问题 We are currently in the middle of a large infrastructure rebuild. We are replacing everything from the CRM to the ERP to the CTI. We have decided to use WebRTC for the CTI. After working with WebRTC for a bit I really see the promise in this technology and started to think that maybe this is the way we want to go for our Webchat as well. The premise behind this is to be able to add Voice / Video and Screensharing to our chat feature at some point in time. Since WebRTC is not supported in

Align text with bottom as it comes in during a chat?

纵然是瞬间 提交于 2019-12-06 05:59:15
问题 I'm building a custom web chat application, and while I have the basics worked out, I've been wondering if this was possible... right now, the chat comes in at the top of the div, and when it reaches the bottom, the div starts scrolling. This works. This is great. But I was wondering if it was possible to create it more like an IRC client, where the chat comes in initially at the bottom of the div, then each new line comes in below the old ones, etc, and again, when the div is full, it starts

How to get list of offline/online users in chat by using smack api in android

送分小仙女□ 提交于 2019-12-04 16:19:11
I am writing a chat application in android by using xmpp and smack api. Chat is working successfully when i am entering email id of particular friend for sending chat.but i am not able to get list of offline/online users.Please suggest how to get list of users using xmpp smack ..? You have to make a listView to get list of users and try this code public static ArrayList<HashMap<String, String>> usersList=new ArrayList<HashMap<String, String>>(); Presence presence = new Presence(Presence.Type.available); Constants.connection.sendPacket(presence); setConnection(Constants.connection); final

Align text with bottom as it comes in during a chat?

独自空忆成欢 提交于 2019-12-04 09:20:46
I'm building a custom web chat application, and while I have the basics worked out, I've been wondering if this was possible... right now, the chat comes in at the top of the div, and when it reaches the bottom, the div starts scrolling. This works. This is great. But I was wondering if it was possible to create it more like an IRC client, where the chat comes in initially at the bottom of the div, then each new line comes in below the old ones, etc, and again, when the div is full, it starts scrolling. I've managed to get part of this working: I can get it displaying this way. But I can't

Android: APIs for live chat in android

我们两清 提交于 2019-12-04 09:02:52
问题 can anyone please suggest some tutorials or APIs for making live chat applications in android. Thanks ..... 回答1: Depends on what kind of chat you want. If it is one on one instant messaging you can look for java libraries that implement the XMPP protocol. If you want to do group chats you might want to checkout libraries that implement the IRC protocol. Smack - java xmpp libary - http://www.igniterealtime.org/projects/smack/ aSmack - android fork of smack - http://code.google.com/p/asmack/

SignalR multiple chat rooms

这一生的挚爱 提交于 2019-12-03 07:14:09
问题 I am planning to create a chat application, and I've read that SignalR is one of the best technologies to apply. I've seen examples of it, but they only have a single chat room. I want to have multiple chat rooms. The user will just choose one of those chat rooms. Although I'm a beginner, I think to create a single chat room in SignalR is by this: <script type="text/javascript"> $(function () { var connection = $.connection.communicator; connection.receive = function (from, msg) { $("

Android: APIs for live chat in android

陌路散爱 提交于 2019-12-03 00:50:37
can anyone please suggest some tutorials or APIs for making live chat applications in android. Thanks ..... Depends on what kind of chat you want. If it is one on one instant messaging you can look for java libraries that implement the XMPP protocol. If you want to do group chats you might want to checkout libraries that implement the IRC protocol. Smack - java xmpp libary - http://www.igniterealtime.org/projects/smack/ aSmack - android fork of smack - http://code.google.com/p/asmack/ ejabberd - xmpp server - http://www.ejabberd.im/ Martyer - java irc library - http://martyr.sourceforge.net/

SignalR multiple chat rooms

三世轮回 提交于 2019-12-02 19:45:29
I am planning to create a chat application, and I've read that SignalR is one of the best technologies to apply. I've seen examples of it, but they only have a single chat room. I want to have multiple chat rooms. The user will just choose one of those chat rooms. Although I'm a beginner, I think to create a single chat room in SignalR is by this: <script type="text/javascript"> $(function () { var connection = $.connection.communicator; connection.receive = function (from, msg) { $("#chatWindow").append("<li>" + from + ": " + msg + "</li>"); }; $.connection.hub.start(); $("#btnSend").click

Node js - Creating persistent private chat rooms

我的梦境 提交于 2019-11-30 21:25:29
I've been reading so much a bout node js lately, and the chat capabilities seem very nice. However, the only chat examples I've seen basically broadcast a chat server to a fixed URL (like a meeting room). Is it possible to use node js in part to create a chat client more like gchat? - where a chat window is popped up on the current page and then persists through multiple pages. Has anyone seen an example of this yet? If not, suggestions for other technologies to use for this purpose (I know that's been answered in other questions)? Thanks. I'll give you a pseudo implementation relying on