Pull request

CONNECTION_STATE is maybe better ?