With the last version of Nginx, it supports http 1.1 with bidirectional websockets. So it is possible to use it with nodejs (by example).
A spanish intro in this post: http://www.securityartwork.es/2013/06/13/abstrayendo-websockets-ssl/
Here, my minimal-snippets: One plain and one for SSL:
;)