Internal utility functions used by bokeh.client
bokeh.client
server_url_for_websocket_url
Convert an ws(s) URL for a Bokeh server into the appropriate http(s) URL for the websocket endpoint.
ws(s)
http(s)
url (str) – An ws(s) URL ending in /ws
/ws
The corresponding http(s) URL.
str
ValueError – If the input URL is not of the proper form.
websocket_url_for_server_url
Convert an http(s) URL for a Bokeh server websocket endpoint into the appropriate ws(s) URL
url (str) – An http(s) URL
The corresponding ws(s) URL ending in /ws