WebSocket support

109 views
Skip to first unread message

Bhavan Shah

unread,
Feb 7, 2014, 7:25:30 PM2/7/14
to phusion-...@googlegroups.com
We are planning to use WebSockets for our Ruby app to provide updates to web browsers/clients and have few questions:

(1) Does Phusion Passenger now support WebSocket? If so, from which version?
(2) Is it possible to configure Apache in reverse proxy to handover websocket connections to Phusion Passanger?
If so,  what Apache version is requried?

Thanks,

Bhavan

Tinco Andringa

unread,
Feb 8, 2014, 5:41:09 AM2/8/14
to phusion-...@googlegroups.com
Hi Bhavan,

Passenger does support websockets only on nginx for now. It has done
so since version 4 I believe, when nginx introduced websocket support.

I don't know about Apache websocket support, I think it requires
Apache to be configured as a TCP proxy, we haven't heard about anyone
trying it.

Kind regards,
Tinco
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/1c60a927-d36d-4b5b-b12a-33ec8c4dd776%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Hongli Lai

unread,
Feb 8, 2014, 7:10:26 AM2/8/14
to phusion-passenger
Yes. I'm not so sure about Apache because anybody who cares about
WebSockets tend to use Nginx, which generally works better for
long-running requests anyway. I can only confidently say that
WebSockets work great on Nginx. We have a
Ruby-on-WebSocket-on-Nginx-Passenger demo here:
https://github.com/phusion/passenger-ruby-websocket-demo
> To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/CAGW%3D8RpUqQ6aKNvtDk_rkAKBHH0CzTBAwGuEAWrmkTk9mRAYvg%40mail.gmail.com.

Hongli Lai

unread,
Feb 8, 2014, 7:11:57 AM2/8/14
to phusion-passenger
Note that the demo does mention that it works on Apache, but it has
only received minimal testing. I'm not sure whether Apache+WebSockets
always work correctly in production. Of course, any feedback would be
most welcome.

Bhavan Shah

unread,
Feb 9, 2014, 8:44:39 PM2/9/14
to phusion-...@googlegroups.com
Tinco,

Thanks for your note. We will use Nginx.

Bhavan
> You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/tDUTtPqpi-s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/CAGW%3D8RpUqQ6aKNvtDk_rkAKBHH0CzTBAwGuEAWrmkTk9mRAYvg%40mail.gmail.com.

Bhavan Shah

unread,
Feb 9, 2014, 8:49:02 PM2/9/14
to phusion-...@googlegroups.com, ti...@phusion.nl
Thanks, Tinco.

Bhavan Shah

unread,
Feb 9, 2014, 8:50:37 PM2/9/14
to phusion-...@googlegroups.com
Hi Hongli,

Thanks for the note that Nginx works well with Phusion w.r.t. WebSocket. Also, demo link is useful.

Regards,

Bhavan
Reply all
Reply to author
Forward
0 new messages