(
path,
lineNum,
columnNum,
)
| 227 | }, |
| 228 | onServerConsolePipe: (entries) => { |
| 229 | try { |
| 230 | const data = JSON.stringify({ |
| 231 | entries: entries.map((e) => ({ |
| 232 | level: e.level, |
| 233 | args: e.args, |
| 234 | source: 'server', |
| 235 | timestamp: e.timestamp || Date.now(), |
| 236 | })), |
| 237 | }) |
| 238 | |
| 239 | for (const client of sseClients) { |
| 240 | client.res.write(`data: ${data}\n\n`) |
| 241 | } |