Skip to main content
method Socket.prototype.setEncoding
Socket.prototype.setEncoding(encoding?: BufferEncoding): this
Deprecated

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

Parameters

optional
encoding: BufferEncoding

Return Type

this

The socket itself.

Back to top