NodenetSocket.prototype.endmethod Socket.prototype.end#Socket.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 #optional#callback: () => voidOptional callback for when the socket is finished. Return Type #thisThe socket itself. #Socket.prototype.end(buffer: Uint8Array | string,callback?: () => void,): thisParameters ##buffer: Uint8Array | stringoptional#callback: () => voidReturn Type #this#Socket.prototype.end(str: Uint8Array | string,encoding?: BufferEncoding,callback?: () => void,): thisParameters ##str: Uint8Array | stringoptional#encoding: BufferEncodingoptional#callback: () => voidReturn Type #this
method Socket.prototype.end#Socket.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 #optional#callback: () => voidOptional callback for when the socket is finished. Return Type #thisThe socket itself. #Socket.prototype.end(buffer: Uint8Array | string,callback?: () => void,): thisParameters ##buffer: Uint8Array | stringoptional#callback: () => voidReturn Type #this#Socket.prototype.end(str: Uint8Array | string,encoding?: BufferEncoding,callback?: () => void,): thisParameters ##str: Uint8Array | stringoptional#encoding: BufferEncodingoptional#callback: () => voidReturn Type #this