Subscriptions-transport-ws: subscribeToMore: Unhandled GraphQL subscription error: Cannot read property 'subscribe' of undefined

Created on 25 Mar 2017  路  3Comments  路  Source: apollographql/subscriptions-transport-ws

I am using the following setup with react-native:

"subscriptions-transport-ws": "^0.5.5-alpha.0"
"apollo-client": "1.0.0-rc.6"
"react-apollo": "1.0.0-rc.3"

When calling subscribeToMore I will always get the following error:

Cannot read property 'subscribe' of  undefined

Also the apolloClient instance has no method called subscribeToMore, so the example in the readme does not work.

Most helpful comment

@bcf3ah check the name pubsubproperly as I faced it

All 3 comments

I solved it it was actually a server side error due to undefined pubsub -.-

How did you fix the undefined pubsub problem? I'm having the same issue, but I can't figure out why my imported pubsub instance is undefined

@bcf3ah check the name pubsubproperly as I faced it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AruXc picture AruXc  路  3Comments

anilanar picture anilanar  路  5Comments

PetrSnobelt picture PetrSnobelt  路  3Comments

prokher picture prokher  路  5Comments

altschuler picture altschuler  路  4Comments