MsetEncoding
Bun

method

tls.TLSSocket.setEncoding

encoding?: BufferEncoding
): this;

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

@returns

The socket itself.