

The upper figure shows a Cross Adapter with the embedded wires.
The lower figure shows how slip rings in an adapter will allow for 360 degree rotation.
A gasket will be needed to prevent water from outside the pipe from contacting the electrical contacts.