---------------------------------------------------------------------- This is the API documentation for the gdtest_ref_mixed library. ---------------------------------------------------------------------- ## Primary API Main functions connect(host: str, port: int = 8080) -> dict Connect to a remote host. Parameters ---------- host : str The hostname or IP address to connect to. port : int, optional The port number, by default 8080. Returns ------- dict A dictionary with connection details. Examples -------- >>> connect("localhost") {'host': 'localhost', 'port': 8080, 'status': 'connected'} disconnect(connection: dict) -> bool Disconnect from a remote host. Parameters ---------- connection : dict The connection dictionary to disconnect. Returns ------- bool True if disconnected successfully. Examples -------- >>> disconnect({"host": "localhost", "status": "connected"}) True