docstr: A Starlette Websocket client.
  
  NOTE: For use in tests only!
  
  Args:
      client (TestClient): starlette TestClient instance
docstr_tok: ["A","Starlette","Websocket","client",".","NOTE",":","For","use","in","tests","only","!","Args",":","client","(","TestClient",")",":","starlette","TestClient","instance"]
code: def __init__(self, client: TestClient):
      """A Starlette Websocket client.
  
      NOTE: For use in tests only!
  
      Args:
          client (TestClient): starlette TestClient instance
      """
      self._client = client
      self._ws = None
      self._on_message = None
      self._send_cache = None
  
file_path: perspective/python/perspective/perspective/client/starlette_test.py
imports: from starlette.testclient import TestClient
  from starlette.websockets import WebSocketDisconnect
  from queue import Empty
  from .websocket import PerspectiveWebsocketClient, PerspectiveWebsocketConnection, Periodic
label_desc: Use image node_id 1 to create a new _PerspectiveStarletteWebsocketConnection object from inherited base classes: PerspectiveWebsocketConnection with example: obj = _PerspectiveStarletteWebsocketConnection(client)