def METHOD_NAME(s, data: str) -> None:
    try:
        if self._chan is not None:
            self._chan.METHOD_NAME(data.replace("\n", "\r\n"))
    except BrokenPipeError:
        pass  # Channel not open for sending.