Handling a Message.FailureResponse
This branch was created to solve issue again
The problem still exists, but a part of it could is solved with this commit
@@ -166,6 +166,16 @@ export function runMessagingAgent(redux) {
redux.dispatch(actionCreators.messages__close__success(message));
// redux.dispatch(actionCreators.messages__close__failure(event));
return true;
+ } else if (message.isFailureResponse()) {
+ console.warn("The CLOSE MESSAGE ENDED UP IN AN FAILURERESPONSE");
+
+ redux.dispatch({
+ type: actionTypes.connections.close,
+ payload: {
+ connectionUri: message.getSender()
+ },
+ });
+ return true;
}
}
return false;
