(ws)
| 53 | } |
| 54 | |
| 55 | function isAuthenticatedClient(ws) { |
| 56 | return !!ws && ws.readyState === WebSocket.OPEN && !!ws._authenticated; |
| 57 | } |
| 58 | |
| 59 | function normalizeApprovalMode(mode) { |
| 60 | const normalized = String(mode || '').toLowerCase(); |
no outgoing calls
no test coverage detected