Emo
Explore posts from serversCDCloudflare Developers
•Created by Emo on 1/15/2024 in #workers-help
Workers request lifecycle when using websockets API
Hi! I'm researching how the websockets API works on workers and I was wondering how did it fit on a given workers request lifecycle.
Does every message count as one request? how does the app "keep alive" to maintain the connection?
I couldn't find much documentation regarding this, if anyone can help explain or provide more docs 😄
I couldn't find much documentation regarding this, if anyone can help explain or provide more docs 😄
1 replies
Don't send component logic to client conditionally on data?
Hey everyone! I'm trying to wrap my head around this use case and can't understand how one would do it in SolidStart, if someone can help.
In full SSR world:
Very simple: on the server I have a backend request that tells me if user has permission A or not.
Then, I have logic regarding that permission A to show or not show various components.
How can I remove the unused bits from components? does it get removed by default? I don't want to show users without permission A either logic or hidden components in the JS
3 replies