bokeh.client.util¶
Internal utility functions used by bokeh.client
-
server_url_for_websocket_url(url)[source]¶ Convert an
ws(s)URL for a Bokeh server into the appropriatehttp(s)URL for the websocket endpoint.Parameters: url (str) – An ws(s)URL ending in/wsReturns: The corresponding http(s)URL.Return type: str Raises: ValueError– If the input URL is not of the proper form.
-
websocket_url_for_server_url(url)[source]¶ Convert an
http(s)URL for a Bokeh server websocket endpoint into the appropriatews(s)URLParameters: url (str) – An http(s)URLReturns: The corresponding ws(s)URL ending in/wsReturn type: str Raises: ValueError– If the input URL is not of the proper form.