deno.com

method Socket.prototype.setEncoding

#Socket.prototype.setEncoding(encoding?: BufferEncoding): this

Set the encoding for the socket as a Readable Stream. See readable.setEncoding() for more information.

Parameters #

#encoding: BufferEncoding
optional

Return Type #

this

The socket itself.