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.
-
4Did you ever find out the answer to this question? I would like to know which framework was used and how.Steve– Steve2011年01月19日 10:09:46 +00:00Commented Jan 19, 2011 at 10:09
-
@Steve - they used .NET and jQuery, but not sure about the details.Bill Paetzke– Bill Paetzke2011年04月05日 21:12:54 +00:00Commented Apr 5, 2011 at 21:12
2 Answers 2
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):
-
2Was the blog post done? I can't remember.tshepang– tshepang2013年07月29日 17:20:56 +00:00Commented Jul 29, 2013 at 17:20
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.)
-
3I guess I am most interested in how they implemented Comet (aka HTTP push) in .NET.Bill Paetzke– Bill Paetzke2010年09月22日 23:15:41 +00:00Commented Sep 22, 2010 at 23:15
-
1@Bill How do you know the chat uses Comet?NullUserException อ_อ– NullUserException อ_อ2010年09月22日 23:35:41 +00:00Commented Sep 22, 2010 at 23:35
-
4@Bill, the chat polls for events every two seconds.badp– badp2010年09月22日 23:38:59 +00:00Commented Sep 22, 2010 at 23:38
-
1Yes jQuery was used. Just look in the source.Peter Ajtai– Peter Ajtai2010年09月22日 23:43:34 +00:00Commented Sep 22, 2010 at 23:43