Open Wayonb opened 3 years ago
The submitter will get an error synchronously when calling the rest announce endpoint, not via the listener. Why should this submitter or any other submitter client receive an error via listener?
Currently, rest is just a proxy between server message queues and the clients. This would require for rest to create and notify its own messages.
Yeah, transaction announcement vai the put request in the endpoint, and if errors, the rest returns other error codes rather than 202
So the client is notified with the response error. Nothing to do here?
OK. @rg911 Does this means the wallet/Faucet is not checking this error then?
the error of websocket connection does get thrown in the wallet. But it only gets thrown when calling the server API, e.g. announce transactions / node info etc... Wallet won't get notified when the ws listener is forcibly closed on the server side
rest does notify clients when node connection fails.
can we close this issue?
When REST fails to submit a transaction and the their is a websocket register the submitter of the transaction should get notify.