(state: string | undefined)
| 15 | // transaction (and its worker) while running nothing. Worth distinguishing in |
| 16 | // the UI from a plain idle connection. |
| 17 | export function idleInTransaction(state: string | undefined): boolean { |
| 18 | return (state ?? "").toLowerCase().startsWith("idle in transaction"); |
| 19 | } |
| 20 | |
| 21 | // sessionStateLabel is the short human label for a session state, for tooltips. |
| 22 | export function sessionStateLabel(state: string | undefined): string { |
no outgoing calls
no test coverage detected