@canmi/seam-adapter-node
v0.5.31
Published
Node.js HTTP adapter that wraps the seam core router into a `node:http` server.
Downloads
979
Readme
@canmi/seam-adapter-node
Node.js HTTP adapter that wraps the seam core router into a node:http server.
Usage
Exports serveNode() which creates a Node.js HTTP server with seam routing and optional WebSocket proxy.
Structure
src/index.ts—serveNode()entry point with inlinesendResponse(writes directly to Node streams)
Development
- Build:
just build-ts - Test:
just test-ts
Notes
- Peer dependency:
@canmi/seam-server - Does NOT use
toWebResponse— has its ownsendResponsefor Node.js stream compatibility - Optional
wsProxyoption for WebSocket proxy support
