C#: Heartbeat handlers

Adds a handler that is called for each heartbeat the client sends and for its outcome. The status is Sent, Ok, Error, or Timeout.

Examples

Listen to heartbeats

supabase.Realtime.AddHeartbeatHandler((sender, status, latency) =>
{
    Debug.WriteLine($"Heartbeat {status} {latency?.TotalMilliseconds}ms");
});