end
Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.
See writable.end()
for further details.
Since
v0.1.90
Return
The socket itself.
Parameters
encoding='utf8' Only used when data is string
.
callback
Optional callback for when the socket is finished.
fun end(str: Uint8Array<*>, encoding: BufferEncoding = definedExternally, cb: () -> Unit = definedExternally)(source)