Skip to content

Network Status

Allows the detection of changes in network status (online & offline) for client and edge services using supported browsers/runtimes.

vue
<script setup lang="ts">
import { NetworkMonitor, Status } from '@latency-labs/networking'

const networkStatus = ref(Status.Idle);

onMounted(() => {
  const client = new NetworkMonitor();

  client.on(Status.Change, (status: Status) => {
    networkStatus.value = status
  })
})
</script>

<div>
  Current status: {{ networkStatus }}
</div>
© 2026 Latency Labs LLC
latency

© 2026 Latency Labs LLC.