Skip to main content

close

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
Back to top