WebSockets

Live WebSockets with SignalR

This terminal is wired to a live SignalR hub. Every event you see (handshake, presence, disconnect) is real. Hit [PING] in the console and wait for someone in another tab to hit [PONG]. Tap the pencil next to your ID to pick a custom name. Use the [snapshot] button in the console header to request the current presence list on demand.

LIVE OPS CONSOLE

peak online 0
connect to play
waiting for events…

WHAT YOU'RE LOOKING AT

WEBSOCKET TRANSPORT

SignalR negotiates the best available transport and lands on WebSockets when the browser supports it. Long-polling is the fallback, not the default.

HUB PROTOCOL

Every line above maps to a real frame on the wire: handshake on connect, hub invocations for presence and game events, native WebSocket keep-alives, ordered close on disconnect.

AUTOMATIC RECONNECT

Disconnect your network briefly to observe the reconnection logic. The client retries automatically using exponential backoff, and the server synchronizes a fresh presence snapshot upon recovery.

Stack

.NET 10SignalRWebSocketReact 19TypeScriptPingPong Game