Comments (4)
I get an exception when calling connect with an onError callback. Seems like the signature needs to change (Stream uses Function onError
) or am I doing something wrong?
Invalid argument(s): handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace
StackTrace:
#0 _BufferingStreamSubscription.onError (dart:async/stream_impl.dart:152:7)
#1 new _BufferingStreamSubscription (dart:async/stream_impl.dart:115:10)
#2 new _ForwardingStreamSubscription (dart:async/stream_pipe.dart:123:9)
#3 _ForwardingStream._createSubscription (dart:async/stream_pipe.dart:93:16)
#4 _ForwardingStream.listen (dart:async/stream_pipe.dart:88:12)
#5 Websok.listen (package:websok/websok.dart:78:27)
#6 AdonisWebsok.connect (package:adonis_websok/adonis_websok.dart:143:19)
from adoniswebsok.
You can play around onError method to act and reconnect
from adoniswebsok.
I get an exception when calling connect with an onError callback. Seems like the signature needs to change (Stream uses
Function onError
) or am I doing something wrong?Invalid argument(s): handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace StackTrace: #0 _BufferingStreamSubscription.onError (dart:async/stream_impl.dart:152:7) #1 new _BufferingStreamSubscription (dart:async/stream_impl.dart:115:10) #2 new _ForwardingStreamSubscription (dart:async/stream_pipe.dart:123:9) #3 _ForwardingStream._createSubscription (dart:async/stream_pipe.dart:93:16) #4 _ForwardingStream.listen (dart:async/stream_pipe.dart:88:12) #5 Websok.listen (package:websok/websok.dart:78:27) #6 AdonisWebsok.connect (package:adonis_websok/adonis_websok.dart:143:19)
Me too
from adoniswebsok.
I just created a PR to fix the exception: #3
from adoniswebsok.
Related Issues (3)
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 adoniswebsok.