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

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

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions