auto push
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user