From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: HTML5 WebSockets Date: Tue, 24 Nov 2009 11:24:30 -0800 Message-ID: <20091124192430.GA4965@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259090882 20180 80.91.229.12 (24 Nov 2009 19:28:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2009 19:28:02 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Tue Nov 24 20:27:55 2009 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:29 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1ND13I-0005OW-RJ for gclrrg-rainbows-talk@m.gmane.org; Tue, 24 Nov 2009 20:27:52 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 632CD1858282; Tue, 24 Nov 2009 14:27:52 -0500 (EST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id B7B2118581EF for ; Tue, 24 Nov 2009 14:24:31 -0500 (EST) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id EF8721F685; Tue, 24 Nov 2009 19:24:30 +0000 (UTC) Hi all, The Revactor/ThreadSpawn/ThreadPool concurrency models *should* already support HTML5 WebSockets out-of-the-box right now with the respective TeeInput (streaming "rack.input" support). You'll probably want to make sure the Rack::Chunked middleware is loaded for anything you run, but other than that everything should work provided you have a working client-side implementation... I'm terrible at doing anything interactive on web browsers[1] and I don't think any current browsers out there support WebSockets natively, but there are ways to mimic it with JS libraries it seems. If anybody can code anything up and put up a demo, that would be great. I'll get around to adding a Fiber-based concurrency model which should work with TeeInput, too. [1] - guess why the bug tracker for this project is a mailing list :) -- Eric Wong