class_docstr: Handles a WebSocket connection from the browser
docstr: Enable WebSocket compression.
  
  Returning an empty dict enables websocket compression. Returning
  None disables it.
  
  (See the docstring in the parent class.)
docstr_tok: ["Enable","WebSocket","compression",".","Returning","an","empty","dict","enables","websocket","compression",".","Returning","None","disables","it",".","(","See","the","docstring","in","the","parent","class",".",")"]
code: def get_compression_options(self) -> Optional[Dict[Any, Any]]:
      """Enable WebSocket compression.
  
      Returning an empty dict enables websocket compression. Returning
      None disables it.
  
      (See the docstring in the parent class.)
      """
      if config.get_option("server.enableWebsocketCompression"):
          return {}
      return None
  
imports: import base64
  import binascii
  import json
  from typing import Any, Awaitable, Dict, List, Optional, Union
  import tornado.concurrent
  import tornado.locks
  import tornado.netutil
  import tornado.web
  import tornado.websocket
  from tornado.websocket import WebSocketHandler
  from typing_extensions import Final
  from streamlit import config
  from streamlit.logger import get_logger
  from streamlit.proto.BackMsg_pb2 import BackMsg
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.runtime import Runtime, SessionClient, SessionClientDisconnectedError
  from streamlit.runtime.runtime_util import serialize_forward_msg
  from streamlit.web.server.server_util import is_url_from_allowed_origins
label_desc: Use image node_id 7 for calling the BrowserWebSocketHandler obj's underlying member method code with example usage: obj.get_compression_options() and returns: None, dict