Announcement (2017-05-07): www.ruby-forum.com is now read-only since I
unfortunately do not have the time to support and maintain the forum any
more. Please see rubyonrails.org/community and ruby-lang.org/en/community
for other Rails- und Ruby-related community platforms.

Hello!
On Wed, Oct 23, 2013 at 02:15:48PM -0400, hemant_psu wrote:
> I am confused in terms of response, thinking my nginx server should have> first sent connection upgrade response acknowledgement before responding> with text data. Can anyone please suggest the right behaviour of nginx> server when it gets a Connection upgrade request message.
You can't make an arbitrary nginx module to talk via WebSocket
protocol, this isn't going to work.
What you can is to use nginx to proxy WebSocket connections to
some WebSocket backend server using proxy_pass, as documented
here:
http://nginx.org/en/docs/http/websocket.html
Note that you need an actual backend server handling WebSocket
connections for proxying to work.
--
Maxim Dounin
http://nginx.org/en/donation.html