GithubHelp home page GithubHelp logo

Comments (4)

fweinaug avatar fweinaug commented on May 28, 2024 1

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.

ConsoleTVs avatar ConsoleTVs commented on May 28, 2024

You can play around onError method to act and reconnect

from adoniswebsok.

nhtlquan avatar nhtlquan commented on May 28, 2024

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.

fweinaug avatar fweinaug commented on May 28, 2024

I just created a PR to fix the exception: #3

from adoniswebsok.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.