mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-06 23:24:21 +01:00
10 lines
190 B
TypeScript
10 lines
190 B
TypeScript
import type { SSEEvent } from "./types";
|
|
|
|
export const sseEventResponse = (event: SSEEvent) => {
|
|
return {
|
|
data: JSON.stringify(event),
|
|
event: event.type,
|
|
id: event.id,
|
|
};
|
|
};
|