Implementing asp.net mvc chat full duplex

I want to create Facebook / Gmail, how to communicate with me on my social network.

I am looking for the best technique to achieve it. I found several libraries, but I don’t know which are the most suitable

The necessary conditions are:

  • framework c #
  • low bandwidth consumption
  • chat built into the site, if the user changes the page, the connection should remain alive.
  • Free library (not paid)
  • shared hosting, cannot install anything on a web server
  • if possible, use webSocket for browsers that support it and automatically revert to flash or similar if not supported
  • one-on-one chat
  • If possible, I would avoid Silverlight (with full duplex wcf) and use HTML / jquery chat
  • compatible with all browsers

I found the following libraries, but many of them do not provide a C # implementation or you do not need to install the COMET web server or install components on the web server

I believe that using a technique like Reverse Ajax consumes a lot of bandwidth, right? What is the best, free, documented, and C # implemented low-bandwidth libray you use?

thanks

+8
c # asp.net-mvc chat
source share
1 answer

Personally, until you have the measures you need, such as comets, I would use a basic JSON poll with things like throttling (so you slow down the poll in quiet rooms). And the very basic message is "nothing has changed." For example, click the Chat link above. It is simple and pragmatic ...

Saving between pages; harder, especially if you don't want Silverlight. We use several HTML 5 tricks to avoid clogging the connections.

+1
source share

Source: https://habr.com/ru/post/650591/


All Articles