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.
open override fun end(data: <Error class: unknown class><out <Error class: unknown class>>, cb: () -> Unit)(source)
override fun end( str: <Error class: unknown class><out <Error class: unknown class>>, encoding: BufferEncoding = definedExternally, cb: () -> Unit = definedExternally)(source)