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