shogowada / json-rpc-2.0

Let your client and server talk over function calls under JSON-RPC 2.0 spec. Strongly typed. No external dependencies.

Home Page:https://www.npmjs.com/package/json-rpc-2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility with React Native / other backend languages?

princefishthrower opened this issue Β· comments

First off, awesome library!

  • Documentation πŸ’―
  • Examples πŸ’―
  • All TypeScript πŸ’― πŸ’― πŸ’―

So, on to my question, do you foresee anything in the implementation that would prevent this from working in React Native? It works on the web, so I would assume so. If you don't know I could just give it a try and report back πŸ˜„

In terms of other backend languages, I suppose the client should also still work for backend frameworks other than Node (ex. .NET or Go) as long as we write a JSON RPC 2.0 compatible handler?

Thanks!

Thank you for the kind words 😊

do you foresee anything in the implementation that would prevent this from working in React Native?

I don't think so. This library does not assume any protocol or platform.

I suppose the client should also still work for backend frameworks other than Node (ex. .NET or Go) as long as we write a JSON RPC 2.0 compatible handler?

Yes πŸ™‚ Please let me know if there was some compatibility issue!

Awesome. Thanks for these answers! Now to find a nice library for Go... this one looks good: https://github.com/ybbus/jsonrpc but it works only over HTTP (no WebSocket support)... we'll see.

Thanks again!