Set sharejs state in correct way

Open socket state is 'connecting' state for sharejs, state 'connected' will be set after init protocol with server side

Related https://github.com/codio/client/pull/2852