From bac634e2ce9e16baaf2b9ec93d22efd2d61d8727 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sat, 28 Oct 2017 16:05:31 +0200 Subject: [PATCH] Subscriptions docs fixes --- README.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 26644a8..d5beb5d 100644 --- a/README.md +++ b/README.md @@ -684,6 +684,10 @@ export const resolvers = { To make enable the websocket-based subscription, a bit of additional setup is required: +``` +npm install --save subscriptions-transport-ws +``` + ```javascript import Vue from 'vue' import { ApolloClient, createNetworkInterface } from 'apollo-client' @@ -715,19 +719,7 @@ const apolloClient = new ApolloClient({ }) // Install the plugin like before -Vue.use(VueApollo, { - apolloClient, -}) - -// Your app is now subscription-ready! - -import App from './App.vue' - -new Vue({ - el: '#app', - render: h => h(App) -}) - +Vue.use(VueApollo) ``` ### subscribeToMore