Snapping objects together using snap-nodes?

You could maybe have a thing where a trigger or something overlaps the closest socket and attaches to it?