CloudTwin  ROS2 Humble
Digital twin for path and trajectory optimisation
Variables
dt-remote-socket.ts File Reference

Variables

const DEFAULT_RECONNECT_DELAY_MS = 1500
 
const DELIVERY_FAULT_SOUND_URL = '/notification/fault.mp3'
 
const DELIVERY_SOUND_URL = '/notification/sound.mp3'
 
type DtRemoteMessage
 
let hasStarted = false
 
 import { toast } from "sonner"
 
let lastPlayedAt = 0
 
let lastPlayedDeliveryTarget
 
const MAX_RECONNECT_DELAY_MS = 10000
 
let notificationAudio
 
let reconnectAttempts = 0
 
let reconnectTimer
 
let socket
 
const START_ROOM_CODE = 'salle_pharmacie'
 

Variable Documentation

◆ DEFAULT_RECONNECT_DELAY_MS

const DEFAULT_RECONNECT_DELAY_MS = 1500

◆ DELIVERY_FAULT_SOUND_URL

const DELIVERY_FAULT_SOUND_URL = '/notification/fault.mp3'

◆ DELIVERY_SOUND_URL

const DELIVERY_SOUND_URL = '/notification/sound.mp3'

◆ DtRemoteMessage

type DtRemoteMessage
Initial value:
= {
type?: string;
[key: string]: unknown;
}
import type
Definition: use-current-url.ts:1

◆ hasStarted

let hasStarted = false

◆ import

import { toast } from "sonner"

◆ lastPlayedAt

let lastPlayedAt = 0

◆ lastPlayedDeliveryTarget

let lastPlayedDeliveryTarget

◆ MAX_RECONNECT_DELAY_MS

const MAX_RECONNECT_DELAY_MS = 10000

◆ notificationAudio

let notificationAudio

◆ reconnectAttempts

let reconnectAttempts = 0

◆ reconnectTimer

let reconnectTimer

◆ socket

let socket

◆ START_ROOM_CODE

const START_ROOM_CODE = 'salle_pharmacie'