Stting up Bokeh Server proxy


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 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://’ failed: Error during WebSocket handshake: Unexpected response code: 503

I understand that it is trying to connect the websocket to 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.