I understand that つきあう means "to hang out with, to date, to keep company…". I've seen it used both with と and with に, but I haven't been able to figure out when to use which. So for example, what's the difference in meaning between
彼とつきあう and
彼につきあう?