Lampholder with pull chain and socket