最近ApolloClient发布了一个websocket订阅功能,但到目前为止我只看到它是通过在componentWillMount生命周期Hook中使用subscribeToMore启动查询来使用的。这是取自https://dev-blog.apollodata.com/tutorial-graphql-subscriptions-client-side-40e185e4be76#0a8f的示例constmessagesSubscription=gql`subscriptionmessageAdded($channelId:ID!){messageAdded(channelId:$c