effect
effect copied to clipboard
Add @effect/rpc-fastify package
Summary
- Adds
@effect/rpc-fastifypackage for integrating@effect/rpcwith Fastify servers - Provides both Effect-based and synchronous APIs for flexibility
APIs
register- Register RPC handler as a Fastify plugin with automatic content-type parser configuration (recommended)registerEffect- Same asregisterbut returns an Effect for integration with existing Effect applicationstoFastifyHandler- Create a handler with a layer, returns{ handler, dispose }toFastifyHandlerEffect- Create a handler as an Effect, context provided externally
Features
- Full support for streaming RPCs (
RpcSchema.Stream) - Proper backpressure handling for streams
- Client disconnect detection and fiber interruption
- Defect handling with proper error propagation
- MemoMap support for layer sharing
- Middleware support for HTTP app transformation
⚠️ No Changeset found
Latest commit: dba3970cd0f3ddd1e0c5ef58d52f7b4d895950fe
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR