sets status to connected on socket open