Correct types and payload for the applyWSSHandler with createContext
Hey everyone,
I'm using t3 stack and trying to add websocket handler for my setup. I'm following this example - https://github.com/trpc/examples-next-prisma-websockets-starter.
My create context func looks like this:
and I'm using it like this:
unfortunately I see the following typing error in VSCode:
What needs to be fixed to make this work correctly?
1 Reply
Versions info:
Node:
upd:
adding
db
to createContext fixed the problem: