state synchronization script

I have written script to have manually control over the synchronized transform data but I am not sure how to send information about scale. Unity documentation says lossyScale is variable responsible for object scale but it is read only.

	void OnSerializeNetworkView(BitStream stream, NetworkMessageInfo info)
	{
	    Vector3 syncPosition = Vector3.zero;
	    Quaternion syncRotation = Quaternion.identity;
			
	    if (stream.isWriting)
	    {
	        syncPosition = transform.position;
	        stream.Serialize(ref syncPosition);
		syncRotation = transform.rotation;
		stream.Serialize(ref syncRotation);
	    }
	    else
	    {
	        stream.Serialize(ref syncPosition);
	        transform.position = syncPosition;
		stream.Serialize(ref syncRotation);
		transform.rotation = syncRotation;
			
	    }
	 }

You can set the localScale property of a transform. The lossyScale property will be some calculated value based on all the transforms up the object hierarchy.