Initial commit

This commit is contained in:
2025-08-16 16:11:33 +10:00
commit 91df32c786
39 changed files with 6284 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { EphemeralTransport } from '../src/transports/ephemeral-transport.js';
import { TransportComposite } from '../src/transports/transport-composite.js';
import { TransportSSE } from '../src/transports/transport-sse.js';
const composite = async (url: string) =>
TransportComposite.from(
await Promise.all([TransportSSE.from(url), TransportSSE.from(url)]),
);
const ephemeral = EphemeralTransport.from(composite);
const message = await ephemeral.receive(
'https://oracles.generalprotocols.com/sse/v1/messages',
);
console.log(message);