the web socket endpoint should be dynamically generated