handle pong event and show round trip latency

This commit is contained in:
Joel Wetzell
2026-05-06 16:56:54 -05:00
parent 998d3adce6
commit 2d110cffeb
2 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<div class="w-full">
<mat-toolbar color="primary">
@if (eventsService.status() === 'open') {
<div matTooltip="Connected" class="h-3 w-3 rounded-full bg-green-400 mr-2"></div>
<div [matTooltip]="'Connected' + (eventsService.socketRoundTripLatency() !== null ? ' (' + eventsService.socketRoundTripLatency() + ' ms)' : '')" class="h-3 w-3 rounded-full bg-green-400 mr-2"></div>
} @else if (eventsService.status() === 'closed') {
<div matTooltip="Disconnected" class="h-3 w-3 rounded-full bg-orange-400 mr-2"></div>
} @else if (eventsService.status() === 'error') {