Skip to contentOpen History to see the last commit
sse-utils.ts
8 lines197 Bytes
1export function parseSseDataLine(line: string): string { 2 if (!line.startsWith('data:')) { 6 const data = line.slice(5) 7 return data.startsWith(' ') ? data.slice(1) : data