trying to check if socket io is connected