22

I realize there is a similar, broader question here. But the answer is old and does not include the chat technology. Let me know (even if they completely rolled their own). Thanks!

I am most interested in how they implemented Comet (aka HTTP push) it in .NET.

2
  • 4
    Did you ever find out the answer to this question? I would like to know which framework was used and how.
    – Steve
    Jan 19, 2011 at 10:09
  • @Steve - they used .NET and jQuery, but not sure about the details. Apr 5, 2011 at 21:12

2 Answers 2

23
+25

But the answer is old and does not include the chat technology.

Actually it's more or less up-to-date, and does indeed include chat technology, because the chat is built on the same stack.

The chat is more or less a plain ol' ASP.NET MVC application. Obviously it's very JavaScript-heavy on the client-side, but the client-server communication is just simple XHRs (actually JHRs) that ask the server what happened.

I am most interested in how they implemented Comet (aka HTTP push) in .NET.

We didn't originally. We went with a simple polling model; see Why is the Stack Exchange chat room using simple polling instead of other Comet techniques?. We later added (optional) support for Websockets; see Does the chat system support sending data via WebSockets?. We're using a custom-written Websocket server that Marc wrote (SignalR did not yet exist back when this was added).

We're planning on putting up a blog post at some point to give an overview of some of the ideas and decisions that went into the chat.

If you have any specific questions feel free to ask them.

Some interesting questions that already exist and that offer some insight and discussions (in no particular order):

1
  • 2
    Was the blog post done? I can't remember.
    – tshepang
    Jul 29, 2013 at 17:20
6

I'm going to assume that jQuery was one of them.

On the server-side, I'm guessing the technology used is the same as the rest of the network. (ASP.net, SQL Server, etc.)

4
  • 3
    I guess I am most interested in how they implemented Comet (aka HTTP push) in .NET. Sep 22, 2010 at 23:15
  • 1
    @Bill How do you know the chat uses Comet? Sep 22, 2010 at 23:35
  • 4
    @Bill, the chat polls for events every two seconds.
    – badp
    Sep 22, 2010 at 23:38
  • Yes jQuery was used. Just look in the source. Sep 22, 2010 at 23:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .