A sparkless socket (1000', 2000') configured to be in contact with a pair of pins of a plug being inserted in the socket, comprising: a socket (200, 200'), wherein a first slot and a second slot are configured in the socket (200, 200'), each slot (210,220) having slot walls, wherein a through hole is configured on each of the slot walls of each of the first slot and the second slot, and the through holes face each other; a sensing module, comprising: an emitter, configured to emit infrared light; a first receiver, configured to receive the infrared light via a light guide element module and the through holes of the first slot, so as to generate a first sensing result accordingly; and a second receiver, configured to receive the infrared light via the light guide element module and the through holes of the second slot, so as to generate a second sensing result accordingly; a controller (420, 430), coupled to the sensing module so as to receive the sensing result, and connected to a city power system; and a switching module, coupled between the socket (200, 200') and the controller (420, 430) to receive an alternating-current power provided by the city power system from the controller (420, 430), and controlled by the controller (420, 430) to transmit the AC power to the socket (200, 200'), wherein when the controller (420, 430) determines that none of the frst receiver and the second receiver receives the infrared light according to the first sensing result and the second sensing result, the controller (420, 430) enables the switching module, and otherwise, the controller (420, 430) disables the switching module. a socket (200, 200'), wherein a first slot and a second slot are configured in the socket (200, 200'), each slot (210,220) having slot walls, wherein a through hole is configured on each of the slot walls of each of the first slot and the second slot, and the through holes face each other; a sensing module, comprising: an emitter, configured to emit infrared light; a first receiver, configured to receive the infrared light via a light guide element module and the through holes of the first slot, so as to generate a first sensing result accordingly; and a second receiver, configured to receive the infrared light via the light guide element module and the through holes of the second slot, so as to generate a second sensing result accordingly; an emitter, configured to emit infrared light; a first receiver, configured to receive the infrared light via a light guide element module and the through holes of the first slot, so as to generate a first sensing result accordingly; and a second receiver, configured to receive the infrared light via the light guide element module and the through holes of the second slot, so as to generate a second sensing result accordingly; a controller (420, 430), coupled to the sensing module so as to receive the sensing result, and connected to a city power system; and a switching module, coupled between the socket (200, 200') and the controller (420, 430) to receive an alternating-current power provided by the city power system from the controller (420, 430), and controlled by the controller (420, 430) to transmit the AC power to the socket (200, 200'), wherein when the controller (420, 430) determines that none of the frst receiver and the second receiver receives the infrared light according to the first sensing result and the second sensing result, the controller (420, 430) enables the switching module, and otherwise, the controller (420, 430) disables the switching module.