If you have Varnish then why have nginx? Is there an advantage to having nginx do the request routing?
Of course if you are just forwarding to another backend you may lose this.
However, I really think that nginx should implement proper support for WebSockets by now. I have requested this previously, but the request got unanswered.
https://www.varnish-cache.org/docs/3.0/tutorial/compression....