Skip to content

Conversation

@aniravi24
Copy link
Contributor

layerHttpOptions and layerWebsocketOptions were using layerProtocolHttp and layerProtocolWebsocket which create their own internal routers via routerTag.Live, ignoring the router from HttpLayerRouter.serve. This caused RPC routes to not be registered on the served router, resulting in 404 errors for inter-runner communication.

The fix is to use layerProtocolHttpRouter and layerProtocolWebsocketRouter which properly use the router from context.

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Related

…t-TS#5918

layerHttpOptions and layerWebsocketOptions were using layerProtocolHttp
and layerProtocolWebsocket which create their own internal routers via
routerTag.Live, ignoring the router from HttpLayerRouter.serve. This
caused RPC routes to not be registered on the served router, resulting
in 404 errors for inter-runner communication.

The fix is to use layerProtocolHttpRouter and layerProtocolWebsocketRouter
which properly use the router from context.
@aniravi24 aniravi24 requested a review from tim-smart as a code owner January 7, 2026 07:52
@github-project-automation github-project-automation bot moved this to Discussion Ongoing in PR Backlog Jan 7, 2026
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: e3c2f4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@effect/cluster Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/sql-clickhouse Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

layerHttpOptions should use layerProtocolHttpRouter

1 participant