Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageListView Widget is not realtime #28

Closed
KingIdee opened this issue Apr 15, 2020 · 5 comments
Closed

MessageListView Widget is not realtime #28

KingIdee opened this issue Apr 15, 2020 · 5 comments
Labels
question Further information is requested

Comments

@KingIdee
Copy link

I built a sample using your MessageListView widget and I was not getting messages in realtime. Here is a GIF:

ezgif com-video-to-gif (1)

@imtoori imtoori added the bug Something isn't working label Apr 15, 2020
@imtoori
Copy link
Contributor

imtoori commented Apr 15, 2020

@KingIdee Did you use client.queryChannels or call channel.watch?

@imtoori imtoori added question Further information is requested and removed bug Something isn't working labels Apr 15, 2020
@KingIdee
Copy link
Author

I don't think I did. Isn't the StreamChannel widget supposed to do that? I mean, I'm passing the channel to it:

      Navigator.push(
        context,
        MaterialPageRoute(
          builder: (context) {
            return StreamChannel(
              child: ChannelPage(),
              channel: channel,
            );
          },
        ),
      );

@imtoori
Copy link
Contributor

imtoori commented Apr 16, 2020

You need to get the channel using client.queryChannels or call channel.watch after you created it otherwise you won't receive the events related to that channel
Can you try?

@KingIdee
Copy link
Author

Oh yeah. I used channel.watch. It worked fine. Since it's chatting, the feature should work out of the box I think.

@imtoori
Copy link
Contributor

imtoori commented Apr 16, 2020

That's the way it works on other SDKs
I'll take the request into consideration, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants