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
- Firebase app import
I'm **very** new to appwrite and I just set up appwrite with docker and I'm trying to import a Firebase app I have set up but it's erroring and I don't really k...
- Hi Folks, Database Writing Issue
Hey Folks im trying to get logging setup on my website but im getting an error, i dont have any document id and i think this is the issue but i havent got the f...
- Error with realtime channels
I'm performing a subscription to realtime channels, and after a few seconds I get an exception with this error: {\"type\":\"error\",\"data\":{\"code\":1008,\"me...