ESP32 code giving error Attempting MQTT connection…failed, rc=-4

Hello, i’m trying to use ESP32 to send sensors data to an HTML dashboard using hivemq websocket , when i run the code on esp32 it gives me the error " Attempting MQTT connection…failed, rc=-4" i used port 8884
i will send part of the code below, i need help to solve this problem

Post all code in code tags. If errors, post error log in code tags. Take a picture of a hand drawn wiring diagram and post. Did you google what rc=4 means for the function that produced it? Google is your friend.