使用的内部效用函数 bokeh.client
bokeh.client
server_url_for_websocket_url
转换一个 ws(s) 将Bokeh服务器的URL http(s) websocket终结点的URL。
ws(s)
http(s)
url (str) -- 安 ws(s) 以结尾的URL /ws
/ws
相应的 http(s) 网址。
str
ValueError -- 如果输入URL的格式不正确。
websocket_url_for_server_url
转换一个 http(s) 将适当的URL放入WebBoocket的端点服务器 ws(s) URL
url (str) -- 安 http(s) URL
相应的 ws(s) 以结尾的URL /ws