This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.client.util — Bokeh 1.0.3 documentation

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 appropriate http(s) URL for the websocket endpoint.

Parameters:url (str) – An ws(s) URL ending in /ws
Returns: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 appropriate ws(s) URL

Parameters:url (str) – An http(s) URL
Returns:The corresponding ws(s) URL ending in /ws
Return type:str
Raises:ValueError – If the input URL is not of the proper form.