_write(obj, encoding, cb) {
    let json = JSON.stringify(obj);
    let jsonBytes = Buffer.byteLength(json);
    let buffer = Buffer.alloc(4 + jsonBytes);
    buffer.writeUInt32BE(jsonBytes);
    buffer.write(json, 4);
    this._socket.write(buffer, cb);
  }
/**
    Implements the writeable stream method `_write` by serializing
    the object and pushing the data to the underlying socket.
   */
Implements the writeable stream method `_write` by serializing
the object and pushing the data to the underlying socket.
Implements the writeable stream method ` _write ` by serializing the object and pushing the data to the underlying socket .
_write(obj, encoding, cb) {
    let json = JSON.stringify(obj);
    let jsonBytes = Buffer.byteLength(json);
    let buffer = Buffer.alloc(4 + jsonBytes);
    buffer.writeUInt32BE(jsonBytes);
    buffer.write(json, 4);
    this._socket.write(buffer, cb);
  }
_write ( obj , encoding , cb ) { let json = JSON . stringify ( obj ) ; let jsonBytes = Buffer . byteLength ( json ) ; let buffer = Buffer . alloc ( 4 + jsonBytes ) ; buffer . writeUInt32BE ( jsonBytes ) ; buffer . write ( json , 4 ) ; this . _socket . write ( buffer , cb ) ; }
Implements the writeable stream method `_write` by serializing
the object and pushing the data to the underlying socket.
Implements the writeable stream method ` _write ` by serializing the object and pushing the data to the underlying socket .