(line: string)
| 54 | } |
| 55 | |
| 56 | const emitLine = (line: string): void => { |
| 57 | if (!line.trim()) return |
| 58 | try { |
| 59 | onMessage(parse(line)) |
| 60 | } catch (error) { |
| 61 | rejectInvalidFrame(error) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | socket.on('data', (chunk: Buffer) => { |
| 66 | let start = 0 |
no test coverage detected