Git Product home page Git Product logo

Comments (19)

rlee1990 avatar rlee1990 commented on June 16, 2024 1

I'm going to try something and see if that works.

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024 1

Im getting this when both are added:
flutter: (2022-02-25 11:02:42.189426) ℹī¸ 🕒 Client null attempting to subscribe to [/site-92418-feed-timeline_storiesi1OPQTtBcSR5Moe3k6BiRS0QoV52_personal]()

from stream-feed-flutter.

sachaarbonel avatar sachaarbonel commented on June 16, 2024 1

There is a bug somewhere in our Faye implementation I'll investigate and let you know when we have a fix for you to try out

from stream-feed-flutter.

sachaarbonel avatar sachaarbonel commented on June 16, 2024

Hmm weird, did you change anything in your dashboard?

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

@sachaarbonel nope nothing was changed.

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

I see in the debug console when the realtime is started but after that I don't get any updates.

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

@sachaarbonel any update on what to do on this?

from stream-feed-flutter.

sachaarbonel avatar sachaarbonel commented on June 16, 2024

Sorry @rlee1990, I can't replicate this with my API key, can I impersonate you? I'll delete the activity id right away

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

@sachaarbonel Yes please do. What ever it takes to figure this out.

from stream-feed-flutter.

sachaarbonel avatar sachaarbonel commented on June 16, 2024

Running this integration test with your credentials works for me
faye_client_test.dart.
Flutter wise, did you have any change in your codebase recently, in the way you manage your state? Maybe you have an unnecessary rebuild somewhere

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

I still just use riverpod for state management

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

I am checking everything. I haven't made any changes to any code for Stream Feeds at all.

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

I found the issue.
When I removed this subscription:

subStories = await SNAB.streamFeedClient
        .aggregatedFeed('timeline_stories')
        .subscribe((message) {
      print('New message: $message');
    });

Then this one works:

final feed = SNAB.streamFeedClient.flatFeed(
        'timeline', '${widget.user.uid}_${widget.user.currentAccount}');
    sub = await feed.subscribe((message) {
      print('Message: $message');
      setState(() {
        for (var element in message!.newActivities!) {
          if (posts.contains(element)) {
            final oldPost = posts.firstWhere((post) => post.id == element.id);
            posts.remove(oldPost);
            posts.add(element);
          } else {
            posts.insert(0, element);
          }
        }
      });
    });

Are we only to have one realtime stream or am I doing something wrong?
@sachaarbonel

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

I even tried this:

final timeline = SNAB.streamFeedClient.aggregatedFeed(
        'timeline_stories', '${widget.user.uid}_${widget.user.currentAccount}');
    subStories = await timeline.subscribe((message) {
      print('New message: $message');
    });

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

Okay thank you

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

Any updates on this?

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

Any up on this

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

@sachaarbonel has this been resolved yet?

from stream-feed-flutter.

rlee1990 avatar rlee1990 commented on June 16, 2024

@sachaarbonel is there any progress on this?

from stream-feed-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.