Hello how can I get websocket to work on Prisma se...
# orm-help
p
Hello how can I get websocket to work on Prisma server?
o
What is your question exactly? Prisma exposes subscriptions out of the box
You can consume those subscriptions.
p
I am using Apollo client and want to subscribe to an event
the prisma admin says this wss should work wss://eu1.prisma.sh/philip-andrew/demo/dev
but I tried with chrome websocket client and not able to connect
maybe my question is, how can I use Apollo client to do a subscription to an event
to the prisma server
o
p
in my prisma directory there is a src/index.ts and a types.ts file, now does the index.ts run on the prisma server ?
is that what runs?
so I need to add a subscription type object to it I think?
thanks your help, I worked out how to do subscription inside the admin
now I got to go try in the client side javascript