auto push

This commit is contained in:
2024-04-19 10:18:59 +08:00
parent dab7b8748b
commit c8666e65d1
84 changed files with 410 additions and 287 deletions

View File

@@ -1,10 +1,10 @@
import mqtt from "mqtt";
declare global {
var mqtt_client: mqtt.MqttClient;
}
// declare global {
// var mqtt_client: mqtt.MqttClient;
// }
const mqtt_client =
globalThis.mqtt_client || mqtt.connect("wss://io.wibudev.com");
// const mqtt_client =
// globalThis.mqtt_client || mqtt.connect("wss://io.wibudev.com");
export default mqtt_client;
// export default mqtt_client;