Is there a way to key frame sockets?

I’d like to adjust a sockets location and rotation in an animation, but I can only seem to add key frames for bones, not sockets.