With the latest version of Nginx, it supports HTTP 1.1 with bidirectional websockets. So it is possible to use it with Node.js (for example).

A Spanish intro in this post: SecurityArtwork

Here, my minimal-snippets: One plain and one for SSL: