Show that $S:= \{ x+iy \;|\; x = 0 \text{ or } x>0 , y = \sin(\frac{1}{x}) \} $ is connected, even though there are points in $S$ that cannot be connected by any curve in $S$
Attempt: Suppose $S$ is disconnected. By definition there exists two disjoint sets $A$ and $B$ such that $S$ is contained in $A \cup B$ and $S$ is not contained in neither $A$ nor $B$.
This is where I'm stuck. Somehow I have to arrive at a contradiction or show that no such sets $A, B$ exist but don't know how to proceed. Any help would be greatly appreciated.