Giter Club home page Giter Club logo

Comments (6)

itsthetaste avatar itsthetaste commented on July 30, 2024 1

yes I can confirm that this is working for me now. I can now receive objects.

But as tomas says, there is no way to tell which of the HubMethods triggered the hubCallback.

from signalr_flutter.

AyonAB avatar AyonAB commented on July 30, 2024

What version of the plugin are you using?
If you are not using latest version then change it to the latest, which is v0.0.5 and do a flutter clean after that.

from signalr_flutter.

tomasgaray avatar tomasgaray commented on July 30, 2024

i have the same issus:
java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at path $
happen when the backend send an object.

image

another thing, can you please add a callback by every subscribe HubMethod , cause sometimes, we need to specific thing by callback thanks so much

from signalr_flutter.

AyonAB avatar AyonAB commented on July 30, 2024

Although I'm little confused as why StatusChangeCallback is raising this exception cause it was meant to be String. I couldn't quite reproduce the issue but anyway did some changes for a possible fix. @tayyyab or @tomasgaray if any one of you can grab the latest pre-release version (0.0.6-dev.1) from the pub and test it, I'll be glad for that help.

from signalr_flutter.

AyonAB avatar AyonAB commented on July 30, 2024

Thank you for the feedback and as for the hubCallBack, I'll looking into it once I get some time.

from signalr_flutter.

furkansoylemez avatar furkansoylemez commented on July 30, 2024

im getting this exception when server sends a json. Its ok with receiving strings but im in trouble with jsons. Any suggestions? @AyonAB

Edit: I fixed this issue by changing in kotlin code hub.on method class type String to Object and casted received object to string.I can open pull request if its ok

from signalr_flutter.

Related Issues (20)

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.