/*
 * @Author: GuLiMmo 2820890765@qq.com
 * @Date: 2024-03-12 18:01:28
 * @LastEditors: GuLiMmo 2820890765@qq.com
 * @LastEditTime: 2024-08-27 16:17:01
 * @FilePath: /drone-web/src/mqtt/config.ts
 * @Description: mqtt配置
 * Copyright (c) 2024 by GuLiMmo, All Rights Reserved.
 */
import { IClientOptions } from 'mqtt'

export const OPTIONS: IClientOptions = {
  clean: true, // true: 清除会话, false: 保留会话
  connectTimeout: 10000, // mqtt 超时时间
  resubscribe: true, // 断开重连后，再次订阅原订阅
  reconnectPeriod: 10000, // 重连间隔时间： 5s
  keepalive: 5, // 心跳间隔时间：1s
  clientId: 'DroneWeb',
  username: 'root',
  password: 'root',
  host: 'dev.jxpskj.com',
  protocol: 'wss',
  // 8083
  port: 8084,
}
