added socket thread in case of invite