5 Replies
the examples seem to be using
publicProcedure
s, I've also tried using none public procedures but the don't work because I'm sending the token via the headers.
and as far as I know you can't send headers for websockets.somehow it works in the websockets example 😄
cookies are still sent to ws afaict
but the
procedure
still public
right ?
also how would it work with React Native ?
without utilizing cookies ?i don't do much RN, do some exploration, maybe req headers might work there instead
might be that something small needs adding in trpc to account for this
maybe
WebSocketClientOptions
needs to include headers
-callback similarly to how the http links workI am looking into it, thanks Alex.
I thought I'd get some of the communities ideas.