@appport/transport-inprocess
v1.0.0
Published
In-process AppPort transport.
Downloads
115
Readme
@appport/transport-inprocess
The in-process transport: client and capability server in one process.
import { createInProcessTransport } from "@appport/transport-inprocess";
const transport = createInProcessTransport({
server,
identity: await server.identify({ transport: "inprocess", sessionId })
});Used for tests, server-side execution, local-first applications and local runtimes.
Envelopes are round-tripped through JSON by default, so in-process behaviour
matches the networked transports exactly — the difference between a test that
proves the protocol and one that proves a function call. Pass
serialize: false to skip it when you are measuring overhead rather than
conformance.
In-process execution grants no implicit trust: an identity is supplied the same way as on any other transport.
