NodenetSocket.prototype.endmethod Socket.prototype.endOverload 1#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 ##callback: () => void optionalOptional callback for when the socket is finished. Return Type #this The socket itself. Overload 2#Socket.prototype.end(buffer: Uint8Array | string,callback?: () => void,): thisParameters ##buffer: Uint8Array | string #callback: () => void optionalReturn Type #this Overload 3#Socket.prototype.end(str: Uint8Array | string,encoding?: BufferEncoding,callback?: () => void,): thisParameters ##str: Uint8Array | string #encoding: BufferEncoding optional#callback: () => void optionalReturn Type #this
method Socket.prototype.endOverload 1#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 ##callback: () => void optionalOptional callback for when the socket is finished. Return Type #this The socket itself. Overload 2#Socket.prototype.end(buffer: Uint8Array | string,callback?: () => void,): thisParameters ##buffer: Uint8Array | string #callback: () => void optionalReturn Type #this Overload 3#Socket.prototype.end(str: Uint8Array | string,encoding?: BufferEncoding,callback?: () => void,): thisParameters ##str: Uint8Array | string #encoding: BufferEncoding optional#callback: () => void optionalReturn Type #this