I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtime server" every couple of seconds. I had it working in the past but also not easily. Recently I switched from native nginx to nginx-proxy-manager. Maybe thats an issue? Websockets is enabled and why would the heartbeat work? I tried different channels. This is the basic code:
final subscription = Appwrite().realtime.subscribe([
'databases.*',
]);
print(
'eventsListener: subscription created, channels: ${subscription.channels}',
);
Appwrite().subscriptions.add(subscription);
subscription.stream
.listen(
(RealtimeMessage message) {
print('eventsListener: received message');
print(' channels: ${message.channels}');
print(' events: ${message.events}');
print(' payload: ${message.payload}');
},
)
.onError((e) {
print('eventsListener: stream error: $e');
log('eventsListener error', error: e);
});
print('eventsListener: listening established');
I also tried 'databases.[id].collections.[id].documents' or 'tablesdb.[id].tables.[id]' and different wildcards. No idea what to do.
Yep, it seems to be broken / partially working. https://discord.com/channels/564160730845151244/1482365925742350407
Use an older sdk
Thanks. Is there a release plan for a fix?
Recommended threads
- Function deploy not working "invalid doc...
When I do `appwrite push function` it ends with error creating function rule. My instance is self hosted 1.9.5 and when the error happens docker logs this: ``` ...
- Traefic Start Problem - Docker and Selfh...
Hello Appwrite Community, I've got some problems with installing the self-hosted appwrite server in docker. Because when I try to start the traefic service, I ...
- Issue Related to Presence
```PresenceService: upsert error – AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401) ...