Socket only had 2 wires...I think they were black and green.

If you did disconnect another wire once you open it you will be able to see where it comes from.

Possibly your model is slightly different than mine and the white is a ground.
It should become obvious when you open it.

Good luck