public bool Write(string line) { lock (objlock) { BaseStream.Write(line); } _bytesSentSubj.OnNext(line.Length); return true; }