close

fun close()(source)

Closes an output stream and forces the sent data to display.

MDN Reference