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

is it possible to use two or more .h stubs for one single HTTP server? #318

Open
arthurep opened this issue Mar 21, 2022 · 1 comment
Open

Comments

@arthurep
Copy link

I have a collection of several JSON-RPC .json files which I would like to support in a single HTTP server. I have tried:

  • Reutilizing the same HttpServer object for several different stub AbstractServer child object constructors
  • Creating a child class inheriting all AbstractServer classes from my stubs which implement all their methods

For both cases, it seems that only the last AbstractServer stub, which I include my HttpServer object in, is taken into account. Calling methods from other stubs returns a METHOD_NOT_FOUND to the calling client.

Therefore I wanted to ask: is using several json-rpc stubs for a single httpServer (or any other AbstractServerConnector) a supported usecase of this library? If yes, any suggestions on how to implement it?

Thanks a lot!

@cinemast
Copy link
Owner

Hi! This is currently not possible. How would you expect this to work? Use the first server implementation that has a matching method name? Or use different url prefixes per server?

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