method Socket.prototype.setEncoding
Jump to headingSocket.prototype.setEncoding(encoding?: BufferEncoding): thisSet the encoding for the socket as a Readable Stream. See readable.setEncoding() for more information.
Parameters Jump to heading
optional
Jump to headingencoding: BufferEncodingReturn Type Jump to heading
thisThe socket itself.