Livechat socket closed - which port?

I have Rocketchat and the Livechat on two differents servers and when I send a message to the livechat the socket closes automatically, does it uses another port than 3000 ? Or can there be another reason why the livechat socket would close like that ?