method Deno.Conn.close Conn.close(): void Closes the connection, freeing the resource. const conn = await Deno.connect({ hostname: "example.com", port: 80 }); // ... conn.close(); Return Type void