mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
fix(a2a): conductor bridge parses the hub's real SSE wire format (id/type in frame, data={ts,payload})
This commit is contained in:
@@ -24,8 +24,10 @@ test.afterEach(async () => {
|
||||
}
|
||||
});
|
||||
|
||||
// Formato REAL do SSE do hub (verificado ao vivo 2026-07-22): id/type nos campos do
|
||||
// frame; o `data:` carrega só {ts, payload}.
|
||||
const sse = (id: number, type: string, payload: Record<string, unknown>) =>
|
||||
`id: ${id}\nevent: ${type}\ndata: ${JSON.stringify({ id: String(id), type, ts: "2026-07-22T00:00:00Z", payload })}\n\n`;
|
||||
`id: ${id}\nevent: ${type}\ndata: ${JSON.stringify({ ts: "2026-07-22T00:00:00Z", payload })}\n\n`;
|
||||
|
||||
interface FakeHub {
|
||||
url: string;
|
||||
|
||||
Reference in New Issue
Block a user