[Socketio] refactor socektio services code