Reputation: 39
I want to add a chat application in my website. I have developed almost part of chat application.But I am getting problem to create chat communication channel.I an using Web-Service to insert and retrieve messages from data base. When I enter the new message then another user can not read that message until he will reload its chat window.
Upvotes: 1
Views: 1003
Reputation: 1058
If you are really up to creating you own chat app. Then here is some idea on how you can make it work based on your current progress.
You have to use an Ajax Timer to constantly get update on new messages.
Are you in someway imitating facebook chat?
first try the chat using web pages for easier implementation then work your way up on making it a widget.
Upvotes: 0
Reputation: 18586
I'm not totally sure what your question is - however:
If you want to create a chat app in .Net why not look into SignalR?
https://github.com/SignalR/SignalR/
They have a demo that shows (In a short amount of code) how to write a chat application.
There is a live chat app written using SignalR also - http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx
Upvotes: 1