pjnicolas
pjnicolas
TtRPC
Created by acronie on 7/7/2023 in #❓-help
Not able to implement websockets with trpc
I'm a little late, but try using this links:
links: [
splitLink({
condition: (op) => op.type === 'subscription',
true: wsLink({ client: wsClient }),
false: httpBatchLink({ url: `${getBaseUrl()}/api/trpc` }),
}),
],
links: [
splitLink({
condition: (op) => op.type === 'subscription',
true: wsLink({ client: wsClient }),
false: httpBatchLink({ url: `${getBaseUrl()}/api/trpc` }),
}),
],
7 replies
TtRPC
Created by pjnicolas on 7/21/2023 in #❓-help
How would you implement basic auth session tokens with tRPC?
So what do you use if you can't use user/password login? I find that very weird since it's the simplest method of authentication
10 replies