I use https://github.com/starfederation/datastar with pb.
Pb uses SEE and so does Datastar. So you can just get all sse streams of pb, then use DS to render with templ pushing to the browser over SSE.
It make it much easier imho.
https://github.com/pocketbase/pocketbase/tree/v0.28.1/tools/subscriptions Makes it even easier as per https://pocketbase.io/docs/go-realtime/
I use https://github.com/starfederation/datastar with pb.
Pb uses SEE and so does Datastar. So you can just get all sse streams of pb, then use DS to render with templ pushing to the browser over SSE.
It make it much easier imho.
https://github.com/pocketbase/pocketbase/tree/v0.28.1/tools/subscriptions Makes it even easier as per https://pocketbase.io/docs/go-realtime/