MrJohz
How can I access the session in fastify when using `useWSS: true`?
I've got a fastify/trpc application that looks something like this:
I would expect that the
req
in the createContext
function would have access to the session (and it does if useWSS
is false). However, when using TRPC with websockets, it currently consistently logs undefined
.
I assume this is because I'm misconfiguring something somewhere, but I'm not sure what, and I'm not sure how to solve this. Has anyone experienced this, or does anyone have any suggestions about how to resolve this? Thanks in advance!7 replies