[IPython-dev] SockJS

Brian Granger ellisonbg@gmail....
Tue Jun 26 16:51:47 CDT 2012


We are aware of these alternatives.  My philosophy (and I think it is
reflected in the rest of the team) is this:  by sticking with plain
old WebSockets, all we have to do is *wait* for the situation to
improve.  That is super easy to do!  Once IE 10 comes out, we should
cover most browsers.  If we go another route, *we* have to do all the
work, and in the end, we will throw that work away because WebSockets
will eventually have universal support.  That sounds like extremely
low priority work to me.

People should not be running older browsers anyways.  There is simply
no reason, you almost have to try hard to run an older browser.

The main area where I find WebSockets to be lacking is in the
proxy/load balancer support.  As far as I know, Apache and nginx don't
support WebSocket proxying, but HAproxy does.  I don't think the load
balancers on Rackspace or AWS do.  But *today* these things are not
show stoppers for the notebook.  As the notebook is run in different
contexts we will have to explore this space further.  But again,
waiting is golden.

Cheers,

Brian


On Tue, Jun 26, 2012 at 2:32 PM, Jason Grout
<jason-sage@creativetrax.com> wrote:
> Have you guys thought about using the SockJS library to implement the
> websockets?  It falls back to older methods if the browser doesn't
> support Websockets, and is designed as a drop-in replacement for
> websocket objects.  There is a tornado-sockjs package as well.
>
> Here are some relevant links:
>
> https://github.com/sockjs
>
> https://github.com/MrJoes/sockjs-tornado
>
> https://groups.google.com/forum/#!topic/sockjs/lgzxVnlth54/discussion
> (see in particular Serge's post; third one from the top).
>
> http://www.rabbitmq.com/blog/2011/08/22/sockjs-web-messaging-aint-easy/
>
> http://www.rabbitmq.com/blog/2011/09/13/sockjs-websocket-emulation/
>
> Thanks,
>
> Jason
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com


More information about the IPython-dev mailing list