As described in the issue: #13, the app crashes when we are using the websocket and we loose internet.
A fix recommendation was given in the source lib, but it forces to have asynchronous method. But here, all the methods are synchronous (which is not great).
The ideal way will be to change all the method from synchronous to asynchronous, but I think that will change a lot of things.
Therefore, I simply redirect the onError returns from the future to the _onError callback
As described in the issue: #13, the app crashes when we are using the websocket and we loose internet.
A fix recommendation was given in the source lib, but it forces to have asynchronous method. But here, all the methods are synchronous (which is not great).
The ideal way will be to change all the method from synchronous to asynchronous, but I think that will change a lot of things.
Therefore, I simply redirect the
onError
returns from the future to the_onError
callback