Skip to content

feat: Maintainers wanted for wsLink #6109

Closed

Description

@KATT

We need maintainers for wsLink

Help us in revamping tRPC's WebSocket support!

Since we introduced subscriptions using httpSubscriptionLink, the core team no longer relies on wsLink as we handle subscriptions over HTTP. Consequently, we've decided to deprecate wsLink and invite the community to take over its maintenance. 🙏

The current implementation is located here. As you might notice, it's not well-written; each modification has added complexity, and it urgently needs a rewrite.

We recognize the value of having tRPC support for WebSockets and would love to see it actively maintained by passionate developers like you. 🌟 We'll happily guide you around the codebase to get you started!

What we'd like to see

We want a revamped version of wsLink and createWSClient that supports the existing features:

  • ⏳ Lazily closing/opening connections when needed.
  • 🔄 Resumes subscriptions if the server stops.
  • 🔁 Gracefully switches connections to a new one if the server notifies it's about to close.
  • 🚀 Restarts with backoff when it fails.
  • ⚡ Supports queries, subscriptions, and mutations.
  • 🔍 Supports introspection of the current connection status of the active socket.
  • 🏓 Ping/Pong support to detect and close inactive connections.

Additionally, we'd want it to:

  • ✍️ Be well-written.
  • ✅ Be thoroughly tested. Existing tests should pass any implementation.
  • 📚 Include comprehensive documentation.
  • 🪝 Have a React-hook for introspecting the connection state - e.g. useConnectionState(wsClient)

Alternatives we've considered

  • We're also considering financial funding as an option. We estimate that investing a few thousand dollars would enable us to dedicate the necessary time to rewrite it. 💰
  • If we don't find maintainers, we'll likely delete the wsLink in v12 of tRPC. 🗑️

If you're interested in contributing or taking over the maintenance of wsLink, please reach out! Your contributions can make a significant impact on the tRPC community. 🙌


Activity

  1. added
    🙋‍♂️ help wanted
    on Oct 12, 2024
  2. github-actions commented on Feb 19, 2025

    @github-actions
    Contributor

    This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.

  3. locked as resolved and limited conversation to collaborators on Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🙋‍♂️ help wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions