Questions tagged [chat]

Generic term for "Instant Messaging System". It can also represent a discussion that occurs in an Instant Messaging System.

In terms of computing, chat refers to methodologies and applications to enable to transmission and receipt of messages between end users, whether text or media (e.g voice, video), as well as the content of any such communication.

5837 questions
1060
votes
35 answers

Scroll to bottom of div?

I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom without much luck. I am wrapping everything in this div: #scroll { height:400px; overflow:scroll; } Is there a way to keep it scrolled to…
kush
  • 16,408
  • 17
  • 48
  • 65
196
votes
13 answers

Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?

I am developing a news app but I am getting following errors in from gradle console (androidx.core:core:1.0.1) and classes.jar (com.android.support:support-compat:28.0.0) Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in…
Sweden Edgar
  • 2,039
  • 2
  • 8
  • 8
107
votes
3 answers

Best way to store chat messages in a database?

I'm building a chat app and I want a full history off all messages ever sent in the chat conversation. At the moment I am storing each message as a single row in a table called 'messages'. I am aware that this table could grow huge as even small…
wilsonpage
  • 17,341
  • 23
  • 103
  • 147
105
votes
2 answers

Android Whatsapp/Chat Examples

Does anybody have an example or a tutorial for a Android application like WhatsApp? I want to understand how WhatsApp works and how it is programmed. I want to see an example that uses a message-chat-system with "online"-status and "read the…
user1878413
  • 1,813
  • 4
  • 18
  • 24
77
votes
6 answers

How to start a Skype chat – not a call – with a link

You can put skype:username into the href attribute of a link and it works, but it begins a call, but I want to create a link to begin a chat (a text conversation). I know that skype: is a type of protocol, but don’t know how to create this link.
elon
  • 1,488
  • 2
  • 14
  • 25
59
votes
3 answers

How is GMail Chat able to make AJAX requests without client interaction?

All HTTP responses require the client to initiate them, even those made using AJAX. But GMail's chat feature is able to receive messages from other users, even when I'm just sitting in my comfy computer chair watching but not interacting with the…
chat
  • 1,789
  • 3
  • 14
  • 11
55
votes
2 answers

Best python XMPP / Jabber client library?

What are your experiences with Python Jabber / XMPP client libraries? What do you recommend?
flybywire
  • 261,858
  • 191
  • 397
  • 503
41
votes
16 answers

Automatically scroll down chat div

I have this code, to load chat function getMessages(letter) { var div = $('#messages'); $.get('msg_show.php', function (data) { div.html(data); }); } setInterval(getMessages, 100); What I have to add, to automatically scroll down…
Adam Výborný
  • 691
  • 2
  • 6
  • 16
39
votes
15 answers

React native flatlist initial scroll to bottom

I am trying to create a chat in React native using a Like WhatsApp and other chat apps, the messages start at the bottom. After fetching the messages from my API, I call this.myFlatList.scrollToEnd({animated: false}); But it scrolls…
yooouuri
  • 2,578
  • 10
  • 32
  • 54
38
votes
4 answers

Best way to manage Chat channels in Firebase

In my main page I have a list of users and i'd like to choose and open a channel to chat with one of them. I am thinking if use the id is the best way and control an access of a channel like USERID1-USERID2. But of course, user 2 can open the same…
Eusthace
  • 3,601
  • 7
  • 34
  • 41
38
votes
6 answers

How does in-browser chat work?

Just curious. How exactly does chatting in a browser work? Usually if a user goes to a web page, his/her webbrowser requests the page content. A server produces output and sends it to the user's computer. But with chatting it's a little bit the…
quano
  • 18,812
  • 25
  • 97
  • 108
33
votes
11 answers

How can I program a simple chat bot AI?

I want to build a bot that asks someone a few simple questions and branches based on the answer. I realize parsing meaning from the human responses will be challenging, but how do you setup the program to deal with the "state" of the…
Larsenal
  • 49,878
  • 43
  • 152
  • 220
32
votes
5 answers

Is it ok to use HTTP REST API for Chat application?

We are building a chat application on Android. We are thinking of using HTTP REST API to send outbound messages. Wanted to know if it's a good approach or has any downsides compared to using WebSockets or XMPP (which seems to be more of a defacto…
Madhur Ahuja
  • 22,211
  • 14
  • 71
  • 124
31
votes
1 answer

Is there any way to get the live chat replay log/history for YouTube streaming video?

I’ve been doing research on online chat message patterns recently. I’ve chosen YouTube and Twitch.tv for the chat message sources. I’ve found chat loggers for real-time livestreams, but I also need acquire the chat log/history for already…
kkorona
  • 425
  • 1
  • 4
  • 8
28
votes
6 answers

How to make a chat application in android?

I would like to add chat functionality with online user in gmail in android. how to add chat feature in my own application in android? I want to show an online user in google maps which is nearest to the area which I have selected and have the…
Urvashi Hirani
  • 343
  • 1
  • 5
  • 5
1
2 3
99 100