Last post Feb 05, 2014 09:42 PM by Ruchira
Jan 31, 2014 07:55 AM|aruluvi|LINK
I need to know how the chat applications are developing in asp.net c# interact with datase without go to back end every time. Whenever new message inserted into table that time only back end hit the new records to front end.
Jan 31, 2014 08:05 AM|kedarrkulkarni|LINK
signalR based chat application do not poll application database for new messages, rather... it keeps long open connection to server
and server sends the messaage when it receives another message from another client
in summary, client 1 will open a connection with server and keep waiting (no repetative connection)
if client 2 sends message to server then server will broadcast that message to client 1 and then client 1 will finish waiting and recieve the message
u can store this message in between into database table.... but signalR is not really monitoring the database for new messages
check my article about one-one chat in signalR
hope this helps...
Jan 31, 2014 08:13 AM|aruluvi|LINK
Need to store the conversation, because need to see what the last conversation means that time, it'll be better while storing in database.
Jan 31, 2014 08:53 AM|kedarrkulkarni|LINK
u can of course store the messages in database from signalR server side code
Feb 03, 2014 11:42 PM|aruluvi|LINK
I am able to store the conversation. How to retrieve when next time login. And one more doubt is need to develop two separate application one is client and another is server, whether SignlR works in this scenario.
Feb 05, 2014 09:42 PM|Ruchira|LINK
I am able to store the conversation. How to retrieve when next time login.
You have to map the connection to users. Check the below article
And one more doubt is need to develop two separate application one is client and another is server, whether SignlR works in this scenario.
Of course. SignalR is all about communicating real time between client and server.
Please 'Mark as Answer' if this post helps you