start refactor socket io client