updates client connection state