The hagfish is secreting a substance while feeding to protect itself from other animals.