S
SolidJS7mo ago
Claloi

How to make Server Sent Event (SSE)

I need to make a SSE, so that all client have the data updated when it is modified. Howewer, since I'm using ag-grid the server side rendering (ssr) is desactivated.
2 Replies
peerreynders
peerreynders7mo ago
In what way is not being able to SSR impeding your ability to use SSE (I don't see them as being connected in any way)? FYI: h3 now supports event streams directly. https://github.com/peerreynders/solid-start-sse-chat/blob/d2b9070f956947c940dc2046abbbbf4bbcbd58e2/src/components/history-context/streamer.ts#L89
GitHub
solid-start-sse-chat/src/components/history-context/streamer.ts at ...
Basic Chat demonstration with server-sent events (SSE) - peerreynders/solid-start-sse-chat
Advanced - h3
More utilities
Claloi
ClaloiOP7mo ago
Thank for the information, I will check that!
Want results from more Discord servers?
Add your server