(message: string | ArrayBuffer | Uint8Array)
| 43 | } |
| 44 | |
| 45 | function decodeWsText(message: string | ArrayBuffer | Uint8Array): string { |
| 46 | if (typeof message === 'string') return message |
| 47 | const bytes = message instanceof Uint8Array ? message : new Uint8Array(message) |
| 48 | return new TextDecoder().decode(bytes) |
| 49 | } |
| 50 | |
| 51 | function isGeminiSetupFrame(message: string | ArrayBuffer | Uint8Array): boolean { |
| 52 | try { |
no outgoing calls
no test coverage detected