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
- Insights🐛 Bug Report: Missing Tables AP...
Hi. First time appwrite user. i'm building a new mobile app with react-native & expo and decided to use appwrite as a tech for this app. i found the react-nativ...
- Upgrading Appwrite 1.7.4 → 1.8.x: What H...
I'm currently running a self-hosted Appwrite v1.7.4 instance that still uses the old Collections/Documents database model. I noticed that starting from v1.8.x,...
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...
