ready-state doesnt really need to be an int on the server side
Set the ready-state to connected