Here is some info and code on keeping a socket open long term to pass code and commands between a desktop and an ESP32. The code includes both a server for the ESP32 and a client application for the desktop. Everything is in MicroPython. Should be easy to adapt to different situations. This just keeps the socket open for passing data. There is no protocol beyond that. Do whatever makes sense to you and your application.
Here is a link to the code: https://drive.google.com/open?id=1-qg...
And the answer is... Monty Python and the Holy Grail
En esta página del sitio puede ver el video en línea This Changes Everything! - ESP32 Micropython Open Socket Tutorial with Code de Duración hora minuto segunda en buena calidad , que subió el usuario Clayton Darwin 11 noviembre 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 12,361 veces y le gustó 213 a los espectadores. Disfruta viendo!