Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: HTML5 WebSockets
Date: Tue, 24 Nov 2009 11:24:30 -0800	[thread overview]
Message-ID: <20091124192430.GA4965@dcvr.yhbt.net> (raw)

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

             reply	other threads:[~2009-11-24 19:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24 19:24 Eric Wong [this message]
     [not found] ` <20091124192430.GA4965-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-12-10 23:32   ` HTML5 WebSockets Eric Wong
     [not found]     ` <20091210233236.GA23608-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-12-11  7:48       ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/rainbows/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091124192430.GA4965@dcvr.yhbt.net \
    --to=normalperson-rmlxzr9ms24@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).