ESP-32 Communication

Hello,

I have a project similar to the "Friendship Lamps" where I would like two ESP-32's to connect to each other via WiFi and when you trigger one, an LED will light up on the other and vice versa, so it works both ways.

I have seen examples online where someone will use one as a Client and the other as a Server but haven't seen anything similar to what I would like to do. I am new to the ESP-32's so I don't have any experience with using them and it is a little out of my depth as I only have experience with Arduino's. I don't actually have an ESP-32 at the moment, I'm just learning how to use them before it arrives.

So if anyone has any sketches/examples they are willing to share or know of any links/information that would be useful I would be very grateful for any advice.

Regards

Shaun