Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
please help me to implement chat functionality in my MVC 5 asp.net application. and client do not want to use signalR and any other third party frameworks. give me some ideas to implement or how can i start. thanku in advance


What I have tried:

i did't tried anything, i want to start from scratch
Posted
Updated 9-Oct-18 5:52am

I googled "asp.net chat application" and this was the first result

https://pusher.com/tutorials/chat-aspnet/[^]

I'm sure if you google yourself you'll find many more.
 
Share this answer
 
 
Share this answer
 
You would need to implement a JavaScript polling to ping your server within a given time. For example, you write a JavaScript function that performs an AJAX request to your server to fetch the data. You may need to use setInterval to ping your server every seconds. One example is this: ASP.NET MVC 5: Implementing a ShoutBox Feature Using jQuery and AJAX[^]

You may need to consider performance when going to this route as polling every seconds can be very expensive when fetching large data sets.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900