Comments (5)
Good catch @overetch, will fix this week when I have some free time.
from polkadart.
@Lohann were you able to look into this?
from polkadart.
You can pretty much catch the exception and call the connect method again. But I guess what you want is to auto-reconnect, is that correct?
from polkadart.
auto reconnect would be a nice feature.
But my main problem with no 'onError' and 'onDone' callbacks. After losing internet connection Websocket connection will be lost as well as all subscriptions and queries. And there's no TimeOutException in websocket by default.
For example:
Class provider.dart [line 184 - 186]
}).listen((message) {
queries.remove(message.id)!.complete(message);
});
And [line 203 - 207]
}).listen((message) {
final StreamController? controller =
get SubscriptionController(message.subscription);
controller?.add(message);
});
'jsonStream' only listening for responses and completely ignores any errors.
from polkadart.
I see. @Lohann was responsible for this part but not sure if he has free time to look into it. I'm going to check with him and if he is not able to take a look add to my queue here.
from polkadart.
Related Issues (20)
- Build failed with an exception. HOT 3
- How subscribe to balance changes? HOT 6
- How to support sr25519 in addFromMnemonic()? HOT 1
- Runtime Api calls HOT 3
- type 'Id' is not a subtype of type 'MultiAddress' HOT 9
- Strongly type parameters of extrinsic api HOT 4
- Redundant `Tuple2` definition in generated types lead to conflict HOT 3
- bad signature error for signing payloads > 256 bytes
- Transaction to an address in string HOT 4
- After using the private key to sign the data, the array length in R is 32, and the first element appears 0. How should I solve this problem? HOT 10
- Project Status HOT 3
- Secure keyring storage HOT 3
- Correct way to catch tx errors
- decode Extrinsic error on Avail chain, but some logic works on polkadot,kusama,westend... HOT 12
- [question] any plan to add sr25519 support on substrate_bip39? HOT 2
- cli gen code error on manta network with 'type 'Null' is not a subtype of type 'String'' HOT 1
- How to use git url deps on yaml HOT 1
- Flutter 3.22.0 version solving failed HOT 2
- Support `CheckMetadata` signed extension HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polkadart.