I have a websocket app that is running on a Linux server. in my nginx file it is set up like this:
location /messenger/chatrooms/ { try_files $uri @prox