method Socket.prototype.end
Jump to headingSocket.prototype.end(callback?: () => void): thisHalf-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.
Parameters Jump to heading
optional
Jump to headingcallback: () => voidOptional callback for when the socket is finished.
Return Type Jump to heading
thisThe socket itself.
Jump to headingSocket.prototype.end(buffer: Uint8Array | string,callback?: () => void,): thisParameters Jump to heading
Jump to headingbuffer: Uint8Array | stringoptional
Jump to headingcallback: () => voidReturn Type Jump to heading
thisJump to headingSocket.prototype.end(str: Uint8Array | string,encoding?: BufferEncoding,callback?: () => void,): thisParameters Jump to heading
Jump to headingstr: Uint8Array | stringoptional
Jump to headingencoding: BufferEncodingoptional
Jump to headingcallback: () => voidReturn Type Jump to heading
this