2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-23 07:30:35 +03:00

add import vue in readme

This commit is contained in:
whitekkk
2016-11-28 08:53:05 +07:00
parent a172f0219a
commit f21cb5dfa6
+1
View File
@@ -15,6 +15,7 @@ socket.io implemantation for Vuejs 2.0 and 1.0
## Usage ## Usage
``` js ``` js
import Vue from 'vue';
import VueSocketio from 'vue-socket.io'; import VueSocketio from 'vue-socket.io';
Vue.use(VueSocketio, 'http://socketserver.com:1923'); // Automaticly socket connect from url string Vue.use(VueSocketio, 'http://socketserver.com:1923'); // Automaticly socket connect from url string