I see, thanks for clarifying that. In the mean time I just called all sockets from the mesh and then threw all of the target sockets into another array.
The next part of the question would be how to use the mouse to switch between sockets based on which one is closer to it that isnt already being targeted?