Coder Social home page Coder Social logo

Comments (8)

w3b6x9 avatar w3b6x9 commented on September 21, 2024

@SamuraiHub did you spin up a Supabase project or are you self-hosting?

If you have a Supabase project, the SUPABASE_API_ENDPOINT should look something like abcdabcdabcdabcdabcd.supabase.co where abcdabcdabcdabcdabcd is your Supabase project ref.

from realtime-dart.

SamuraiHub avatar SamuraiHub commented on September 21, 2024

Thanks for replying. I actually created a Supabase project. is the Supabase project ref found in the settings? I will look for it and if I found it I will replace it and see if it will work or not.

from realtime-dart.

w3b6x9 avatar w3b6x9 commented on September 21, 2024

@SamuraiHub yes, go to your project settings and it should be under API

from realtime-dart.

SamuraiHub avatar SamuraiHub commented on September 21, 2024

Yes it is now working but now, But the channel is not subscribed as I do not see the print statement.

you know a reason for this? Thanks.

from realtime-dart.

w3b6x9 avatar w3b6x9 commented on September 21, 2024

@SamuraiHub can you try channel.subscribe().receive('error', (reasons) => print(reasons)); and see if any errors are printed?

from realtime-dart.

SamuraiHub avatar SamuraiHub commented on September 21, 2024

The Socket is connected but the channel.subscribe() does not seem to do anything. I tried what you stated but also see nothing printed. I only see these kind of messages printed:

flutter: push phoenix ChannelEvents.heartbeat (1) {}
flutter: receive error phoenix phx_reply (1) {response: {reason: unmatched topic}, status: error}
flutter: MESSAGE {event: phx_reply, payload: {response: {reason: unmatched topic}, status: error}, ref: 1, topic: phoenix}
flutter: push phoenix ChannelEvents.heartbeat (2) {}
flutter: receive error phoenix phx_reply (2) {response: {reason: unmatched topic}, status: error}
flutter: MESSAGE {event: phx_reply, payload: {response: {reason: unmatched topic}, status: error}, ref: 2, topic: phoenix}

Thanks.

from realtime-dart.

phamhieu avatar phamhieu commented on September 21, 2024

Hi @SamuraiHub, thanks for reporting the bug.
It's fixed already. Can you try again and let me know if you are still facing the issue.

from realtime-dart.

SamuraiHub avatar SamuraiHub commented on September 21, 2024

Well, I am now getting:

flutter: push phoenix ChannelEvents.heartbeat (1) {}
flutter: receive ok phoenix phx_reply (1) {response: {}, status: ok}
flutter: MESSAGE {event: phx_reply, payload: {response: {}, status: ok}, ref: 1, topic: phoenix}

Which seems ok but it is sill not subscribing. this channel.subscribe().receive('ok', (_) => print('SUBSCRIBED')); does not print Subscribed nor this channel.subscribe().receive('error', (reasons) => print(reasons) prints reasons. I am howerver using something else. Thanks.

from realtime-dart.

Related Issues (11)

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.