create-t3-app icon indicating copy to clipboard operation
create-t3-app copied to clipboard

Example for subscriptions?

Open lantos1618 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Need to implement subscriptions to get data from the server to client in a non polling manner.

Describe the solution you'd like Would like a simple example of how to implement subscriptions with this t3-create-app

Describe alternatives you've considered creating a WS server and then subscribing to the socket in the client but doing so would escape the use of TRPC

lantos1618 avatar Aug 07 '22 07:08 lantos1618

Maybe when tRPC v10 is released where subscriptions supposedly should be a lot better. As of now, they're in a weird state even according to the creator.

juliusmarminge avatar Aug 07 '22 08:08 juliusmarminge

Closing for now, perhaps we'll revisit this later

juliusmarminge avatar Aug 07 '22 14:08 juliusmarminge

Trpc is now above version 10 now, with even version 11 out. Is it possible that this discussion could be reopened?

I have referenced some other sample projects that use TRPC with next.js but an official t3 example implementation would be ideal, especially using protectedProcedures and some sort of auth. Either clerk or nextauth.

sumanthneerumalla avatar Jan 29 '24 20:01 sumanthneerumalla