Event when connect wifi and connect thingerio server

hello @Ahmad_Basarudin,

Could be helpful if you tell us the device you are using, however, please check these topics:
for ESP8266:

for ESP32:

and I know that you are using WiFi but maybe for future doubts, here you can find how to implement ClientListener for other Arduino devices that are using tinyGSM:

Hope it helps