goliu
goliu
TtRPC
Created by goliu on 8/19/2024 in #❓-help
Issues with setting up t3-create-app and server side events(SSE)
Hello, I'm using practically out of the box t3-create app and try to set up project with using SSE. I've added splitLink and simple subscription onPostAdd as in example from docs page(https://trpc.io/docs/client/links/httpSubscriptionLink) However, when try get this sub on client api.post.onPostAdd type of onPostAdd is (property) onPostAdd: DecorateProcedure<SubscriptionProcedure<{...}> Adding the same subscription to trpc sample app with sse support(https://github.com/trpc/examples-next-sse-chat) works perfectly, type of onPostAdd in same call:
(property) onPostAdd: { useSubscription: ProcedureUseSubscription<{ ... }>; }
What am I missing? TY in advance!
2 replies