npm.io
1.0.1 • Published 3h ago

@appport/transport-inprocess

Licence
Apache-2.0
Version
1.0.1
Deps
3
Size
5 kB
Vulns
0
Weekly
0

@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.