The WorldChat example (<https://github.com/graphco...
# prisma-whats-new
c
The WorldChat example (https://github.com/graphcool-examples/react-graphql/blob/master/subscriptions-with-apollo-worldchat) exports
addGraphQLSubscriptions
from
subscriptions-transport-ws
, which will soon be deprecated: https://github.com/apollographql/subscriptions-transport-ws/issues/169. I see in the comments that https://github.com/scf4/add-graphql-subscriptions is an option, i.e.
Copy code
import { addGraphQLSubscriptions } from 'add-graphql-subscriptions';
but now it’s throwing the following error:
wsClient.subscribe is not a function
.