marko
marko
TtRPC
Created by marko on 1/2/2024 in #❓-help
Generate iOS Swift tRPC client
Hey all, I'm looking to get pointed in the right direction for how to best generate a native tRPC client for a Swift iOS app that shares a tRPC backend with a web app. I've seen @Alex / KATT 🐱 loosely mention generating a Swift client based on a tRPC app router (https://twitter.com/alexdotjs/status/1721812788010451302 and https://twitter.com/alexdotjs/status/1706396243415515446) but can't find any further information. I'm not looking to use React Native on mobile so that's a non-starter. I appreciate any and all help with this, thank you!
1 replies
TtRPC
Created by marko on 2/6/2023 in #❓-help
WebSocket connection hangs after significant amount of data passed through the connection.
Hey! I've been really enjoying using tRPC on my latest project, but have gotten stuck getting websockets to work properly these last few days. I'm able to establish a connection and successfully pass data back and forth between the client and server, but after a certain amount of data has been passed over the connection, the server stops responding without any error (the connection remains alive). There's no clear pattern as to why, besides it depending on the amount of data. I can pass 10 very large messages before it hangs, or 100+ smaller messages, and get the same result. I've tried going around tRPC and establishing a direct websocket connection with the server (I'm using tRPC + Fastify), and don't encounter this issue, so it seems to be something with tRPC. Let me know if there's any more information I can provide to help you help me 🙂 Thank you!!
5 replies