From time to time a table lamp needs the socket replaced. Often, it’s because the switch the socket contains is no longer functioning properly. When you replace an old socket, you can feel free to change to some other type of switch. As long as the lamp is wired correctly, you can use any kind of switch you prefer.