Electrical connector assembly including: - a socket comprising at least two first electrical contacts (120, 121) that are linked to an electrical power supply circuit, a first magnetic portion that is constrained to move with the two first electrical contacts, said first magnetic portion being arranged to move by magnetic effect between a first position in which the first electrical contacts (120, 121) are retracted inside the socket and a second position in which the first electrical contacts (120, 121) are outside the socket; - a plug that is intended to be coupled to the socket and comprises two second electrical contacts (220, 221) that are intended to be electrically connected to the two 8first electrical contacts (120, 121) when the latter are outside the socket and a second magnetic portion that is arranged to face the first magnetic portion when the plug is coupled to the socket in order to move, by magnetic effect, the first magnetic portion toward its second position, driving the first electrical contacts (120, 121) toward the outside of the socket, characterized in that: - the assembly includes detection means comprising a magnetic flux measurement sensor that is arranged to measure the magnetic flux flowing between the two magnetic portions, a processing unit that is arranged to receive magnetic flux data arising from the magnetic flux sensor and to generate a control signal when the plug is separated from the socket; - disconnection means cooperating with the detection means and arranged to disconnect the power supply circuit when the control signal arising from the processing unit is received. - a socket comprising at least two first electrical contacts (120, 121) that are linked to an electrical power supply circuit, a first magnetic portion that is constrained to move with the two first electrical contacts, said first magnetic portion being arranged to move by magnetic effect between a first position in which the first electrical contacts (120, 121) are retracted inside the socket and a second position in which the first electrical contacts (120, 121) are outside the socket; - a plug that is intended to be coupled to the socket and comprises two second electrical contacts (220, 221) that are intended to be electrically connected to the two 8first electrical contacts (120, 121) when the latter are outside the socket and a second magnetic portion that is arranged to face the first magnetic portion when the plug is coupled to the socket in order to move, by magnetic effect, the first magnetic portion toward its second position, driving the first electrical contacts (120, 121) toward the outside of the socket, - the assembly includes detection means comprising a magnetic flux measurement sensor that is arranged to measure the magnetic flux flowing between the two magnetic portions, a processing unit that is arranged to receive magnetic flux data arising from the magnetic flux sensor and to generate a control signal when the plug is separated from the socket; - disconnection means cooperating with the detection means and arranged to disconnect the power supply circuit when the control signal arising from the processing unit is received.