Stting up Bokeh Server proxy

Hi,

I am trying to set up a proxy for my Bokeh Server app. I am trying to set this up on Azure Functions. I have see the instruction here Running a Bokeh server — Bokeh 2.4.2 Documentation and although I have followed the gist of it I still can’t seem to get the websocket connection to work. I am able to access the website but the websocket connection fails.

The error I get in the Chrome console is:

bokeh.min.js?v=ef5547c…:1 WebSocket connection to ‘ws://proxy.net/app/ws?bokeh-protocol-version=1.0&bokeh-session-id=teWLABPM7KKxx116rX4SiwrBkEe6sFX40VhKumbzxOSN’ failed: Error during WebSocket handshake: Unexpected response code: 503

I understand that it is trying to connect the websocket to proxy.net which doesn’t exist. Is there a way to get the Bokeh code to send the request to the original URL?

Any help would be much appreciated.