Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

client.execute() doesn't respect the discard parameter #110

Open
joelfillmore opened this issue Nov 16, 2018 · 0 comments
Open

client.execute() doesn't respect the discard parameter #110

joelfillmore opened this issue Nov 16, 2018 · 0 comments

Comments

@joelfillmore
Copy link

Using the following method on the client:

public execute(method: string, params: any, discard: boolean): Promise<any> {
        return this.socket.execute(method, params, discard);
}

When setting discard=true as in the following example:

client.execute('setBandwidthThrottle', {
    "giveInput": {
      "capacity": 0,
      "drainRate": 0
    }
}, true).then(/*something*/)

I get the following error (the id is auto-generated and changes every time):
Error: Expected to get event reply:266995642

When I change discard=false the error goes away.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant