From f21cb5dfa6b82e5c774bb66398a94d6f8ad24032 Mon Sep 17 00:00:00 2001 From: whitekkk Date: Mon, 28 Nov 2016 08:53:05 +0700 Subject: [PATCH] add import vue in readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c978296..77669ab 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,20 @@ socket.io implemantation for Vuejs 2.0 and 1.0 ``` bash npm install vue-socket.io@1.0.2 --save ``` - + ## Usage ``` js +import Vue from 'vue'; import VueSocketio from 'vue-socket.io'; Vue.use(VueSocketio, 'http://socketserver.com:1923'); // Automaticly socket connect from url string /* import socketio from 'socket.io-client'; - + var ioInstance = socketio('http://socketserver.com:1923'); - + Vue.use(VueSocketio, ioInstance); // bind custom socketio instance */