feat(compat): export InMemoryTransport from public API surface (#1834)
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
This commit is contained in:
parent
7d7e62ccc8
commit
42cb6b2b72
2 changed files with 16 additions and 8 deletions
|
|
@ -70,6 +70,7 @@ export { deserializeMessage, ReadBuffer, serializeMessage } from '../../shared/s
|
|||
// Transport types (NOT normalizeHeaders)
|
||||
export type { FetchLike, Transport, TransportSendOptions } from '../../shared/transport.js';
|
||||
export { createFetchWithInit } from '../../shared/transport.js';
|
||||
export { InMemoryTransport } from '../../util/inMemory.js';
|
||||
|
||||
// URI Template
|
||||
export type { Variables } from '../../shared/uriTemplate.js';
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ interface QueuedMessage {
|
|||
|
||||
/**
|
||||
* In-memory transport for creating clients and servers that talk to each other within the same process.
|
||||
*
|
||||
* Intended for testing and development. For production in-process connections, use
|
||||
* `StreamableHTTPClientTransport` against a local server URL.
|
||||
*/
|
||||
export class InMemoryTransport implements Transport {
|
||||
private _otherTransport?: InMemoryTransport;
|
||||
|
|
|
|||
Loading…
Reference in a new issue