L inddlmZddlmZddlmZddlmZddlm Z ddl m Z dZ edd d Z y ) ) annotations)runtime)show_deprecation_warning)gather_metrics)get_script_run_ctx)BrowserWebSocketHandlerzThe `_get_websocket_headers` function is deprecated and will be removed in a future version of Streamlit. Please use `st.context.headers` instead._get_websocket_headerscttt}|ytjj |j }|yt|tstd|dt|jjS)aReturn a copy of the HTTP request headers for the current session's WebSocket connection. If there's no active session, return None instead. Raise an error if the server is not running. Note to the intrepid: this is an UNSUPPORTED, INTERNAL API. (We don't have plans to remove it without a replacement, but we don't consider this a production-ready function, and its signature may change without a deprecation warning.) Nz1SessionClient is not a BrowserWebSocketHandler! ()) r$_GET_WEBSOCKET_HEADERS_DEPRECATE_MSGrr get_instance get_client session_id isinstancer TypeErrordictrequestheaders)ctxsession_clients l/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/streamlit/web/server/websocket_headers.pyr r sAB  C {))+66s~~FN n&= >??Oq Q   &&.. //N)returnzdict[str, str] | None) __future__r streamlitrstreamlit.deprecation_utilrstreamlit.runtime.metrics_utilr7streamlit.runtime.scriptrunner_utils.script_run_contextr.streamlit.web.server.browser_websocket_handlerrr r rrr!s>#?9VRQ% ()0*0r