How to connect the socket from the switch