redwood
redwood copied to clipboard
[Bug?]: Trusted Documents does not work with Realtime.
What's not working?
Trusted Documents does not work with Realtime.
Interestingly if you inspect the network tab, the subscription subscribes properly (client establishes websocket) and the trusted store does indeed have an entry for the subscription query. Furthermore, using dev tools you can inspect the request and see that it is indeed transmitting the hash properly.
However, the realtime functionality of receiving the published event is not happening. The error is logged and displayed in a toast if you clone the demo repo.
How do we reproduce the bug?
Clone the repo here: https://github.com/ladderschool/fragments-deploy-docker (latest main commit has realtime and trusted documents)
When you start it up, you'll immediately get a toast error saying the subscription is not a trusted query. You can click the button to create a new message, but you'll have to refresh the page to get the most recent ones instead of them automatically being appended through the pubSub.
What's your environment? (If it applies)
System:
OS: Windows 11
Binaries:
Node: v20.14.0
Yarn: 4.3.0
Redwood:
Version 7.7.2
Are you interested in working on this?
- [ ] I'm interested in working on this