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

The resolve is always undefined in the client's receive function

unnursolingimars opened this issue · comments

image
I'm using the sample code for the client (using another json-rpc-2.0 API) but I won't get the Promise resolved when I'm sending the request. Do you have any idea what is wrong?

Could it be the id being string vs. number? Can you see what this.idToResolveMap holds?

Aww YES! Thank you so much !
bitmoji