(Edit: Oops, same answer as what TheMG already wrote)
You can see the square pins inside the connector.
The ESP is also at a 90 degree angle to the front, so it is a 2 PCB solution.
That 6 pin connector is very likely the only connection between the PCB's.
A programming connector is also unlikely, because that would be on the PCB with the ESP.