The "wire" as an addictive, pleasure-giving brain implant appeared in Larry Niven's Ringworld in the late 70s. (And that's even what it's called, though it's meant to be strictly recreational in Ringworld.) I wonder if that's the first use of that idea in fiction…