I found in some proofs the following argument, which I do not understand: "suppose $X$ is Thyconoff and $\eta:X\to \beta X$ is the canonical map into its Stone–Čech compactification, since $X$ is Thyconoff we can consider $\eta^{-1}:\beta X\to X$..." and then the argument continues using $\eta^{-1}$ as a continuous retraction of $\eta$.
Is this correct? It seems to me that for an infinite discrete space (and hence Thyconoff) the map $\eta$ can not have any continuous retraction, more generally there are no continuous surjections from a compact space to an infinite discrete space.
Am I wrong?