\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",[3074,3077,3080],{"name":3075,"color":3076},"🙋♂️ help wanted","008672",{"name":3078,"color":3079},"@trpc/client","6095C2",{"name":3081,"color":3082},"🧙🏻 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":3089,"labels":3090,"number":3098,"owner":3012,"repository":3012,"state":3034,"title":3099,"updated_at":3100,"url":3101,"score":3102},"### Describe the feature you'd like to request\n\n`httpBatchStreamLink` was implemented on this https://github.com/trpc/trpc/pull/4347\r\n\r\nCurrently, the built-in AWS Lambda Adapter for tRPC didn't provide support for AWS Lambda Response Streaming, so I'm opening this issue just to keep track of the future support of this functionality.\n\n### Describe the solution you'd like to see\n\nThe ideal solution should be something like this:\r\n\r\n```js\r\nimport { CreateAWSLambdaContextOptions, awsLambdaRequestHandler } from '@trpc/server/adapters/aws-lambda-stream';\r\nconst appRouter = /* ... */;\r\n// created for each request\r\nconst createContext = ({\r\n event,\r\n context,\r\n}: CreateAWSLambdaContextOptions\u003CAPIGatewayProxyEventV2>) => ({}) // no context\r\ntype Context = trpc.inferAsyncReturnType\u003Ctypeof createContext>;\r\nexport const handler = awsLambdaRequestStreamHandler({\r\n router: appRouter,\r\n createContext,\r\n})\r\n```\n\n### Describe alternate solutions\n\nI'm the maintainer of [Serverless Adapter](https://github.com/H4ad/serverless-adapter), a library to connect any serverless environment with any NodeJS Framework. \r\n\r\nI already added support for AWS Lambda Response Stream ([docs](https://serverless-adapter.viniciusl.com.br/docs/main/handlers/aws#aws-lambda-response-streaming)), and I also [support tRPC](https://serverless-adapter.viniciusl.com.br/docs/main/frameworks/trpc) (I still need to update my library to add support to the latest version) but I think it will work without any issue this new feature using my library.\r\n\r\nIf you want to add support for response streaming on the internal built-in, I suggest for who are interested in implementing, read the following files:\r\n- [AwsStreamHandler](https://github.com/H4ad/serverless-adapter/blob/main/src/handlers/aws/aws-stream.handler.ts#L254-L316)\r\n- [ResponseStream](https://github.com/H4ad/serverless-adapter/blob/main/src/network/response-stream.ts)\r\n- [TrpcFramework](https://github.com/H4ad/serverless-adapter/blob/main/src/frameworks/trpc/trpc.framework.ts#L170-L186)\r\n\r\nOf course, the final implementation can be different but this is just my suggestion.\r\n\r\n\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!",[3091,3094,3097],{"name":3092,"color":3093},"@trpc/server","9BE78E",{"name":3095,"color":3096},"✅ accepted-PRs-welcome","0052cc",{"name":3009,"color":3010},4474,"feat: Add support for aws-lambda on httpBatchStreamLink","2025-05-30T09:07:00Z","https://github.com/trpc/trpc/issues/4474",0.73035395,{"description":3104,"labels":3105,"number":3110,"owner":3012,"repository":3033,"state":3034,"title":3111,"updated_at":3112,"url":3113,"score":3114},"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",[3106,3107],{"name":3057,"color":3010},{"name":3108,"color":3109},"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":3116,"labels":3117,"number":1056,"owner":3012,"repository":3033,"state":3034,"title":3123,"updated_at":3124,"url":3125,"score":3126},"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.",[3118,3119,3122],{"name":3030,"color":3031},{"name":3120,"color":3121},"blocked","000000",{"name":3108,"color":3109},"Feat: Support for other `Content-Types`","2023-05-24T03:10:13Z","https://github.com/trpc/trpc-openapi/issues/58",0.73127216,["Reactive",3128],{},["Set"],["ShallowReactive",3131],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fbPFX8N-RU7Vug38vOi4uB9z6verzNZd3DIfNTBgZfTQ":-1},"/trpc/trpc-openapi/345"]