method Socket.prototype.endimport { Socket } from "https://dotland.deno.dev/std@0.116.0/node/net.ts"; end(cb?: () => void): thisHalf-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data. end(buffer: Uint8Array | string, cb?: () => void): thisend(data: Uint8Array | string,encoding?: Encodings,cb?: () => void,): thisend(data?: Uint8Array | string | (() => void),encoding?: Encodings | (() => void),cb?: () => 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. Parametersoptionalcb: () => voidOnly used when data is string. ReturnsthisThe socket itself. Parametersbuffer: Uint8Array | stringoptionalcb: () => voidReturnsthisParametersdata: Uint8Array | stringoptionalencoding: Encodingsoptionalcb: () => voidReturnsthisParametersoptionaldata: Uint8Array | string | (() => void)optionalencoding: Encodings | (() => void)optionalcb: () => voidReturnsthis