1
我想訂閱阿波羅和我收到以下錯誤apolloClient.subsribe是未定義
apolloClient.Subsribe is undefined
附上我的客戶端訂閱
const networkInterface = createNetworkInterface('http://localhost:8000/graphql');
const wsClient = new SubscriptionClient(`ws://localhost:8000/`, {
reconnect: true,
connectionParams: {
}
});
const networkInterfaceWithSubscriptions = addGraphQLSubscriptions(networkInterface,wsClient);
const apolloClient = new ApolloClient({
networkInterface: networkInterfaceWithSubscriptions
})