socket initial state