code: async def send_message(
          self, request: str, response_expected: bool, **kwargs: Any
      ) -> Response:
          
          await self.socket.send(request)
          if response_expected:
              response_text = await self.socket.recv()
              return Response(response_text)
          return Response("")
docs: Transport the message to the server and return the response.
  
          Args:
              request: The JSON-RPC request string.
              response_expected: Whether the request expects a response.
  
          Returns:
              A Response object.