[Socketio] lil refactoring socketio service and commponent code