Html pages use mqtt.js to communicate, and the page will be disconnected after refreshing

recently, I am doing mqtt communication service to realize the communication between different pages by writing js code, but there is a problem of disconnecting after refreshing the page. Please give me some advice

.
Apr.06,2022
Menu