Connector assembly (1, 100) comprising - a housing (5, 500) having at least one cavity for accommodating a terminal, a cable having a longitudinal axis extending along a longitudinal direction and having a conductive core electrically linked to said terminal and an outer insulative sheath, the housing (5, 500) comprising a rear opening through which the cable exits from the housing (5, 500), and - a strain-relief device (3, 300) attached to the housing (5, 500) and clamping the cable in a fixed position at the rear opening, wherein the strain-relief device (3, 300) comprises first (11, 111) and second (12, 112) portions, each comprised of an integrally formed unitary element and being detachable from the housing (5, 500), - the first portion (11, 111) having at least a first arcuate surface extending over less than 360° around the longitudinal axis of the cable and having at least a first opening for the insertion of the cable in the strain-relief device (3, 300) in an insertion direction essentially perpendicular to the longitudinal axis of the cable, the first arcuate surface engaging the outer insulative sheath, and the first portion (11, 111) also comprising first retaining means engaging the housing (5, 500) for retaining the first portion (11, 111) on the housing (5, 500), and - the second portion (12, 112) having at least a second arcuate surface extending over less than 360° around the longitudinal axis of the cable and having at least a second opening for the insertion of the cable in the strain-relief device (3, 300) parallel to the insertion direction, the second arcuate surface engaging the outer insulative sheath, and the second portion (12, 112) also comprising second retaining means engaging the housing (5, 500) for retaining the second portion (12, 112) on the housing (5, 500), characterized in that the second portion of the strain relief device comprises a flexible locking leg extending longitudinally along the insertion direction, between a hinge located essentially between the second arcuate surfaces, and a free end having a hook engaging a tab protruding from the housing, in the longitudinal direction. - a housing (5, 500) having at least one cavity for accommodating a terminal, a cable having a longitudinal axis extending along a longitudinal direction and having a conductive core electrically linked to said terminal and an outer insulative sheath, the housing (5, 500) comprising a rear opening through which the cable exits from the housing (5, 500), and - a strain-relief device (3, 300) attached to the housing (5, 500) and clamping the cable in a fixed position at the rear opening, wherein the strain-relief device (3, 300) comprises first (11, 111) and second (12, 112) portions, each comprised of an integrally formed unitary element and being detachable from the housing (5, 500), - the first portion (11, 111) having at least a first arcuate surface extending over less than 360° around the longitudinal axis of the cable and having at least a first opening for the insertion of the cable in the strain-relief device (3, 300) in an insertion direction essentially perpendicular to the longitudinal axis of the cable, the first arcuate surface engaging the outer insulative sheath, and the first portion (11, 111) also comprising first retaining means engaging the housing (5, 500) for retaining the first portion (11, 111) on the housing (5, 500), and a first arcuate surface extending over less than 360° around the longitudinal axis of the cable and having at least a first opening for the insertion of the cable in the strain-relief device (3, 300) in an insertion direction essentially perpendicular to the longitudinal axis of the cable, the first arcuate surface engaging the outer insulative sheath, and the first portion (11, 111) also comprising first retaining means engaging the housing (5, 500) for retaining the first portion (11, 111) on the housing (5, 500), and - the second portion (12, 112) having at least a second arcuate surface extending over less than 360° around the longitudinal axis of the cable and having at least a second opening for the insertion of the cable in the strain-relief device (3, 300) parallel to the insertion direction, the second arcuate surface engaging the outer insulative sheath, and the second portion (12, 112) also comprising second retaining means engaging the housing (5, 500) for retaining the second portion (12, 112) on the housing (5, 500), characterized in that the second portion of the strain relief device comprises a flexible locking leg extending longitudinally along the insertion direction, between a hinge located essentially between the second arcuate surfaces, and a free end having a hook engaging a tab protruding from the housing, in the longitudinal direction. a second arcuate surface extending over less than 360° around the longitudinal axis of the cable and having at least a second opening for the insertion of the cable in the strain-relief device (3, 300) parallel to the insertion direction, the second arcuate surface engaging the outer insulative sheath, and the second portion (12, 112) also comprising second retaining means engaging the housing (5, 500) for retaining the second portion (12, 112) on the housing (5, 500), characterized in that the second portion of the strain relief device comprises a flexible locking leg extending longitudinally along the insertion direction, between a hinge located essentially between the second arcuate surfaces, and a free end having a hook engaging a tab protruding from the housing, in the longitudinal direction.