medusa-ui/medusa

Find a more elegant way to handle server-to-client communication

kevindeyne opened this issue · 1 comments

Currently: https://medusa-ui.gitbook.io/docs/medusa/additional-functions#send-your-own-event-from-anywhere-in-the-backend-code

But this comes with some difficulties! You need to be able to grab the sessionID somehow.

Also, how would this work with multiple instances? The 'activeSessions' might need to be shared between instances (sounds like something for Hydra, specifically medusa-ui/hydra#12)

There seem to be some issues handling things like disabled (or disabled in iteration tag) when pushing domchanges this way, implying there's an issue somewhere in what kind of tags are being applied