public static ISubject<ByteBuffer, ByteBuffer> ToClientSubject(this Socket socket, int size, CancellationToken token)
 {
     var stream = new NetworkStream(socket, FileAccess.ReadWrite);
     return Subject.Create(stream.ToStreamObserver(token), stream.ToStreamObservable(size));
 }