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

Changing route to the root of the host #1151

Open
TheodorGauguin opened this issue Jan 27, 2023 · 1 comment
Open

Changing route to the root of the host #1151

TheodorGauguin opened this issue Jan 27, 2023 · 1 comment

Comments

@TheodorGauguin
Copy link

Hi,
I was wondering, if there was a way to change the route of the grpc.invoke method to go to the root of the provided host instead of the automatic route of host/ExampleService/ExampleMethod?
Thank you in advance!
Theo

@johanbrandhorst
Copy link
Contributor

I believe you can specify the host as an option to invocations: https://github.com/improbable-eng/grpc-web/blob/master/integration_test/ts/src/client.spec.ts#L23. Does that help?

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

No branches or pull requests

2 participants