class_docstr: Wraps a websocket connection to a client.
  
      
class_docstr_tok: ["Wraps","a","websocket","connection","to","a","client","."]
code: def __init__(
      self,
      protocol: Protocol,
      socket: WSHandler,
      application_context: ApplicationContext,
      session: ServerSession,
  ) -> None:
      self._protocol = protocol
      self._socket = socket
      self._application_context = application_context
      self._session = session
      self._session.subscribe(self)
      self._ping_count = 0
  
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 1 to create a new ServerConnection object  with example: obj = ServerConnection(protocol, socket, application_context, session)