ah.. onMesage was causing the bytes messages content to be nulled.. setting the readOnly properties manually.