\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",[3238,3241,3244],{"name":3239,"color":3240},"🙋♂️ help wanted","008672",{"name":3242,"color":3243},"@trpc/client","6095C2",{"name":3245,"color":3246},"🧙🏻 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":3253,"labels":3254,"number":3262,"owner":3176,"repository":3176,"state":3198,"title":3263,"updated_at":3264,"url":3265,"score":3266},"### 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!",[3255,3258,3261],{"name":3256,"color":3257},"@trpc/server","9BE78E",{"name":3259,"color":3260},"✅ accepted-PRs-welcome","0052cc",{"name":3173,"color":3174},4474,"feat: Add support for aws-lambda on httpBatchStreamLink","2025-05-30T09:07:00Z","https://github.com/trpc/trpc/issues/4474",0.73035395,{"description":3268,"labels":3269,"number":3274,"owner":3176,"repository":3197,"state":3198,"title":3275,"updated_at":3276,"url":3277,"score":3278},"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",[3270,3271],{"name":3221,"color":3174},{"name":3272,"color":3273},"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":3280,"labels":3281,"number":3287,"owner":3176,"repository":3197,"state":3198,"title":3288,"updated_at":3289,"url":3290,"score":3291},"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.",[3282,3283,3286],{"name":3194,"color":3195},{"name":3284,"color":3285},"blocked","000000",{"name":3272,"color":3273},58,"Feat: Support for other `Content-Types`","2023-05-24T03:10:13Z","https://github.com/trpc/trpc-openapi/issues/58",0.73127216,["Reactive",3293],{},["Set"],["ShallowReactive",3296],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fbPFX8N-RU7Vug38vOi4uB9z6verzNZd3DIfNTBgZfTQ":-1},"/trpc/trpc-openapi/345"]