Skip to content

Potentially insufficient error handling for emitEvent() #256

Closed
@jak0bw

Description

@jak0bw

Related to #237 but on the sender side.

When emitting an event §8.27 The emitEvent() method does only define a SecurityError and a NotFoundError, but does not define an error if the emit fails due to another, perhaps technical problem. Consider similar to #237 a sender who wants to emit an event to the configured, but currently offline mqtt broker. This probably results in an error on the protocol level, but is never communicated to the application level. EmitEvent() probably needs a similar definition as:

§7.13 The invokeAction() method
8. If the request fails locally or returns an error over the network, reject promise with the error received from the Protocol Bindings and abort these steps.

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