Skip to content

BackendClient.sendCommand method's rejection callback is not invoked #6

@YegorUdovchenko

Description

@YegorUdovchenko

The BackendClient.sendCommand() currently provides the functionality of sending commands with an acknowledgment of a successful delivery and errors occurrence:

  • The parameterless successListener is called if no transport errors occurred and the command message meets the validation requirements.
  • The errorCallback is called on transport errors, command message validation errors and server runtime errors.

The rejectionCallback that can be passed to sendCommand as a parameter is not invoked currently though.

This issue is to complete/fix the BackendClient.sendCommand() method's functionality so that a rejection callback works as designed.

Metadata

Metadata

Assignees

Labels

Client JSIssues related to the `spine-web-client` librarybugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions