Prevents an abort if a string decoder was set on the Socket or if the decoder
is in objectMode
.
const Socket = require('net').Socket;
const instance = new Socket();
instance.setEncoding('utf8');
Prevents an abort if a string decoder was set on the Socket or if the decoder
is in objectMode
.
const Socket = require('net').Socket;
const instance = new Socket();
instance.setEncoding('utf8');
若有收获,就点个赞吧
0 人点赞
让时间为你证明