You can write code using the Arduino IDE and there's a lot of Arduino/ESP32 libraries for MQTT, HTTP Clients, Websockets.