Comments (8)
@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.
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.
@SamuraiHub yes, go to your project settings and it should be under API
from realtime-dart.
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.
@SamuraiHub can you try channel.subscribe().receive('error', (reasons) => print(reasons));
and see if any errors are printed?
from realtime-dart.
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.
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.
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)
- Chore: complete test coverage HOT 8
- Logger name conflict HOT 1
- Feedback HOT 6
- Unhandled Exception: type 'String' is not a subtype of type 'int' of 'index' HOT 2
- Listening to realtime events on varchar[] column always returns ['archa'] and not the actual array content
- Send Valid User Access Token to Realtime Server HOT 2
- Wrong Parsing of bool values HOT 2
- Int columns get converted to String on realtime listening (for one row) HOT 8
- Stream Subscriptions die when auth token expires HOT 14
- casting error in `RealtimeSubscription`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realtime-dart.