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