How do i attach a cable to cloth so that they move together?

Hi @absoluteboron , welcome to this forum.
i do not quite understand what you are trying to do. Do you try to attach a mesh or component to a mesh/component or is it something more specific?

for attaching component to component u can use this, with including the socket name (correct spelling required).

if the socket is not moving with your cloth, then maybe the hierarchy is somehow wrong ?