Back
Not familiar with this issue, connected with Websocket/Realtime in databases
- 0
- Databases
- Flutter
- Realtime

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.
What's your code?

This is cloud, right?

yup

I already posted the code

This is new to me, in recent month. This is error does not occur before.
Recommended threads
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
