Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ConnectRouter.rpc overload to not require full ServiceType #884

Closed
wants to merge 14 commits into from

Conversation

paul-sachs
Copy link
Contributor

@paul-sachs paul-sachs commented Oct 25, 2023

Partly copied from bufbuild/protobuf-es#594:

ConnectRouter.rpc overload that doesn't require the full service is easier to use for one off methods that don't require an entire service to be defined.

@paul-sachs paul-sachs changed the title Introduce method descriptor Introduce Router.rpc overload to not require full ServiceType Oct 25, 2023
@paul-sachs paul-sachs changed the title Introduce Router.rpc overload to not require full ServiceType Introduce ConnectRouter.rpc overload to not require full ServiceType Oct 25, 2023
@paul-sachs paul-sachs marked this pull request as ready for review October 25, 2023 19:23
packages/connect/src/implementation.ts Outdated Show resolved Hide resolved
packages/connect/src/router-transport.spec.ts Outdated Show resolved Hide resolved
packages/connect/src/method-type.ts Show resolved Hide resolved
packages/connect/src/router.ts Show resolved Hide resolved
packages/connect/src/router.ts Outdated Show resolved Hide resolved
packages/connect/src/router.ts Outdated Show resolved Hide resolved
Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me.

@srikrsna-buf, do you know of a use case for localName we missed? bufbuild/protobuf-es#594 (comment)

packages/connect/src/router.ts Show resolved Hide resolved
@paul-sachs
Copy link
Contributor Author

Continuing PR in fork based PR: #925

@paul-sachs paul-sachs closed this Nov 24, 2023
@timostamm timostamm deleted the psachs/method-descriptor branch September 19, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants