Admin
How are you initializing the client that you're passing into Realtime?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Admin
How are you initializing the client that you're passing into Realtime?
Rank 2: Process
['databases.6439e7ae4abb3e14f2b1']);```Admin
I meant the Client, not Realtime..also this is an invalid channel. What you had before was correct
Rank 2: Process
my mistake i am using like final realtime = Realtime(client).subscribe( ['databases.6439e7ae4abb3e14f2b1.collections.64444e34a0ce20bc4ac8.documents'] );
Admin
That looks like the wrong collection id
Admin
Wait no....I meant the url of the console where you're on the permission settings
Rank 2: Process
correct it but not working final realtime = Realtime(client).subscribe( ['databases.6439e7ae4abb3e14f2b1.collections.6439e7dd6c9e8a193946.documents'] );
Rank 2: Process
here is how i intialize clinet Client client = Client().setEndpoint('http://192.168.29.63/v1') .setProject('64386b13977ba3c49d06') .setSelfSigned(status: true);
Admin
And you're not doing anything else to client? Just passing it into Realtime?
Admin
Please share the url of this page
Rank 2: Process
yes, just passing it
Rank 2: Process
i also tried to print response but its showing null
Admin
Is all your code in one file?
Admin
Please share the url of this page
Rank 2: Process
no i have define in different files
Admin
Ok that's fine
Admin
Please share the url of this page.
Rank 2: Process
and also intialize this two time one for run time and second for constant when ever i need to call client client.setEndpoint('http://192.168.29.63 /v1') .setEndPointRealtime('http://192.168.29.63') .setProject('64386b13977ba3c49d06') .setSelfSigned(status: true);
Admin
Ah there it is...can you try to remove that setEndPointRealtime() call?
Rank 2: Process
yes i have tried but not worked
Admin
Okay just make sure not to call that function
Admin
Now please share the url of this page
Rank 2: Process
just removed the setEnpointRealTime() now its working.
Admin
[SOLVED] how to connect with realtime in flutter
Rank 2: Process
wow, glory to god, as i was trying to implement from last week now its working, Thank you Steven for your kind help.