Replace browser-specific WebSocket.OPEN with WebSocketReadyState.OPEN
from ui-common for environment portability.
type ConnectorEntry,
getWebSocketStateName,
type Status,
+ WebSocketReadyState,
} from 'ui-common'
import { computed } from 'vue'
import { useToast } from 'vue-toast-notification'
const $emit = defineEmits(['need-refresh'])
-const isWebSocketOpen = computed(() => props.chargingStation.wsState === WebSocket.OPEN)
+const isWebSocketOpen = computed(() => props.chargingStation.wsState === WebSocketReadyState.OPEN)
const getConnectorEntries = (): ConnectorEntry[] => {
if (Array.isArray(props.chargingStation.evses) && props.chargingStation.evses.length > 0) {