\r\n\u003C/a>\r\n\r\n## What this would _(hopefully)_ enable \r\n\r\n> Each of these could be implemented already, but it'd likely make things quite convoluted\r\n\r\n- Procedure call batching - #273\r\n- WebSocket transport - #268\r\n- More robust subscription support\r\n- Our own query cache, as a plugin\r\n- Logging & devtools\r\n- Supplying \"retry\" links\r\n- Moving transformers to a plugin\r\n- Would make creating libs for Svelte/Vue/etc easier\r\n- Potentially, move away from relying on react-query in `@trpc/react` and make trpc lighter (unlikely to happen though)\r\n",[2918,2921,2924],{"name":2919,"color":2920},"🙋♂️ help wanted","008672",{"name":2922,"color":2923},"@trpc/client","6095C2",{"name":2925,"color":2926},"🧙🏻 typescript wizardry","391441",412,"Implement exchanges/middlewares to make client more pluggable","2022-10-05T00:09:54Z","https://github.com/trpc/trpc/issues/412",0.7274605,{"description":2933,"labels":2934,"number":2939,"owner":2856,"repository":2877,"state":2878,"title":2940,"updated_at":2941,"url":2942,"score":2943},"I was thinking this package could provide a client that could call the REST endpoints in a typesafe manner.\r\n\r\nIt'd allow trpc servers to expose APIs more easily to external parties.\r\n\r\nFor example:\r\nhttps://github.com/ecyrbe/zodios",[2935,2936],{"name":2901,"color":2854},{"name":2937,"color":2938},"stale","FFFFFF",267,"Any plans for supporting a typesafe REST client?","2023-05-24T03:30:33Z","https://github.com/trpc/trpc-openapi/issues/267",0.7306019,{"description":2945,"labels":2946,"number":2952,"owner":2856,"repository":2877,"state":2878,"title":2953,"updated_at":2954,"url":2955,"score":2956},"As of now trpc-openapi does not support sending a response using other Content-Types other than \"application/json\" is there any workaround for that? or i did something wrong here.",[2947,2948,2951],{"name":2874,"color":2875},{"name":2949,"color":2950},"blocked","000000",{"name":2937,"color":2938},58,"Feat: Support for other `Content-Types`","2023-05-24T03:10:13Z","https://github.com/trpc/trpc-openapi/issues/58",0.73127216,{"description":2958,"labels":2959,"number":2960,"owner":2856,"repository":2856,"state":2878,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the feature you'd like to request\n\nI wanted to use it for a project but does not look like it will be suitable.\r\n\r\nI found the API definition side support amazing. I managed to define my types with zod schemas and managed to wire together an API in a very clean fashion in typescript. This is exactly what I wanted - define my types once and having all the work done for me.\r\n\r\nWhen I tried to write a simple typescript client script to consume the API however, it didn't even compile and it was looking for predefined objects only available in the browser (e.g. fetch, WebSocket etc). I think we are assuming all consumers of the api will be web apps (maybe using nextjs or react or similar) - which I admit is the norm.\r\n\r\nSo this is not a bug report but rather a feature request. I would love to wire up systems with this wonderful tool the same way as it can use it to wire back end and front ends of a web service together.\r\n\r\nI also thought it was a bit weird that the \"client\" side was importing the router definition that was importing the \"@trpc/server\" package.\n\n### Describe the solution you'd like to see\n\nWould like if there were separate libraries for a non-web trpc client vs web-trpc clients.\n\n### Desribe alternate solutions\n\nAlso would like if we didn't have to include a @trpc/server package for client side definition. Maybe a @trpc/core that ships both with server and client? - just throwing ideas\n\n### Additional information\n\n_No response_\n\n### 👨👧👦 Contributing\n\n- [ ] 🙋♂️ Yes, I'd be down to file a PR implementing this feature!",[],3134,"feat: Make client library not tied to browser","2022-12-11T18:01:47Z","https://github.com/trpc/trpc/issues/3134",0.73356783,["Reactive",2966],{},["Set"],["ShallowReactive",2969],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fbPFX8N-RU7Vug38vOi4uB9z6verzNZd3DIfNTBgZfTQ":-1},"/trpc/trpc-openapi/345"]