Not able to change websocket connection URL

I have build a streamlit app and deployed it on a standalone url which works as expected. We have an internal system for reporting which is build on react. We tried to deploy the app in the standalone url into our internal system and it’s giving us a websocket connection error. On inspecting the error we found that the websocket url on standalone app and deployed one are not the same. We tried to change the base path in the config.toml file but the resulting path after deployment is not correct. We want to change the websocket path entirely and put our own. Is it possible to do this ?