class_docstr: Wraps a websocket connection to a client.
  
      
class_docstr_tok: ["Wraps","a","websocket","connection","to","a","client","."]
docstr: Allow the session to be discarded and don't get change notifications from it anymore
docstr_tok: ["Allow","the","session","to","be","discarded","and","do","n't","get","change","notifications","from","it","anymore"]
code: def detach_session(self) -> None:
      """Allow the session to be discarded and don't get change notifications from it anymore"""
      if self._session is not None:
          self._session.unsubscribe(self)
          self._session = None
  
file_path: bokeh/src/bokeh/server/connection.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Awaitable
label_desc: Use image node_id 4 for calling the ServerConnection obj's underlying member method code with example usage: obj.detach_session() without return types