Update the scope on socket io recived