Back
Not familiar with this issue, connected with Websocket/Realtime in databases
- 0
- Databases
- Flutter
- Realtime
Mosh Ontong
TypeScript
@override
Stream<SubscribeRealtime<User>> streamUsers({required Realtime realtime}) {
_logger.info('Subscribing to user stream');
final subscription = realtime.subscribe(
[
// ignore: lines_longer_than_80_chars
'databases.${userCredential.databaseId}.collections.${userCredential.collectionId}.documents',
],
);
return subscription.stream.map((event) {
return SubscribeRealtime(
data: User.fromJson(
event.payload,
),
type: SubscribeRealtimeType.fromString(
event.events.first,
),
);
});
}
TL;DR
Developers are experiencing an issue with Websocket/Realtime in databases that is new and was not occurring before. The provided code snippet shows how they are handling subscription to user streams.
Solution: The error could potentially be related to the way the subscription to the realtime data is being handled in the code snippet. Double-check the implementation and ensure it aligns with the requirements for Websocket/Realtime in databases. D5
What's your code?
D5
This is cloud, right?
Mosh Ontong
yup
Mosh Ontong
I already posted the code
Mosh Ontong
This is new to me, in recent month. This is error does not occur before.
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...