guy troubles

so I'm in a loving, amazing, online relationship.  I have trouble when he leaves to even hang out with his friends, and I get depressed.  I feel as if I'm too attached, do you think I'm right? If so what can I do to distance myself a little?