To make websocket available on reverse proxy, separate websocket logic from app.js