I want to make Asp.NET
Web Chat Application and found that Signalr
is best option for this. I found one sample Project with Long Polling
but it seems that it takes such a long time to send message or it just cancels it. I want to make speedy Chat app like Facebook
and Google
.
Please give me better way to go ahead.
The best thing about SignalR
is that you don't have to worry about Long Polling
and WebSockets
, but the framework itself deals with it.
When first launched, SignalR will try to use WebSockets
, because it is the newest and uses the least broadband. Then, it will fallback to Server Sent Events
, Forever Frame
and Long Polling
, all depending on the technology available on the server and on the client.
http://www.asp.net/signalr/overview/getting-started/introduction-to-signalr Here you have these concepts explained.
To sum things up, you shouldn't specify the framework which technology to use, but it should determine for itself (when dealing with each client - browser), depending on the available technology on the server and on the client.
Hope this helps! Good luck!
asp.net
not mvc. according to you, which one should be better ? I have many to many web app using server send events
and 'long polling'. But I am looking for one to one chat and i have one sample project with 'long polling', which is not working. –
Ladanum © 2022 - 2024 — McMap. All rights reserved.