Pull switch

This lamp socket uses a ball chain attached to a pull switch for control.

A pull switch, also known as pull-cord switch, or light pull, or pull chain is a switch that is actuated by means of a chain or string.