WebSocket.Upgrade

24 views
Skip to first unread message

Josh Perry

unread,
Jul 21, 2011, 4:47:18 PM7/21/11
to Manos de Mono
I was watching Miguel's state of the union presentation, and when he
demoed Manos he used what looks like a static function
WebSocket.Upgrade. Does this functionality exist in Manos? I can't
seem to find it anywhere.

Josh

Jackson Harper

unread,
Jul 21, 2011, 5:25:04 PM7/21/11
to manos-...@googlegroups.com

Josh Perry

unread,
Jul 21, 2011, 8:06:48 PM7/21/11
to Manos de Mono
Thanks Jackson!

Is there a reason this isn't in the Manos codebase? Just curious if
it
perhaps has been obsoleted or if it was just an experiment and
perhaps
needs some stabilization work done.

Josh

Jackson Harper

unread,
Jul 21, 2011, 8:10:24 PM7/21/11
to manos-...@googlegroups.com


Yeah it's many just experimental right now and needs to be fleshed out a little more.

Jackson

Stuart Johnson

unread,
Jul 25, 2011, 3:23:48 PM7/25/11
to manos-...@googlegroups.com
What does this do? Does it add websocket support to Manos?

I have not got into websockets yet, so i dont know if this is possible,
but I looking for a web server that can dish out web pages, and also act
as a websocket server on the same port (80/443).

Jackson Harper

unread,
Jul 25, 2011, 4:14:58 PM7/25/11
to manos-...@googlegroups.com
It does. Although its somewhat experimental (along with web sockets).

Depending on your needs, the easiest thing to do is to usually setup a
subdomain for web sockets. So something like:

www.manos.com running django
and
streams.manos.com running node.js

Jackson

Stuart Johnson

unread,
Jul 25, 2011, 5:50:06 PM7/25/11
to manos-...@googlegroups.com
I see, thanks.

Stuart Johnson

unread,
Jul 25, 2011, 6:10:15 PM7/25/11
to manos-...@googlegroups.com
I was just reading on Stackoverflow, that WebSockets have a HTTP-compatible handshake so that HTTP servers can share their default HTTP and HTTPS ports (80 and 443) with a Web Sockets server.

I was thinking about embedding Manos into an existing server application I have, so it can perform both tasks on the same ports.
Reply all
Reply to author
Forward
0 new messages