mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-20 15:50:35 +03:00
added import of library to usage section
This commit is contained in:
@@ -18,6 +18,7 @@ npm install vue-socket.io --save
|
|||||||
#### Configuration
|
#### Configuration
|
||||||
Automatic socket connection from an URL string
|
Automatic socket connection from an URL string
|
||||||
``` js
|
``` js
|
||||||
|
import VueSocketio from 'vue-socket.io';
|
||||||
Vue.use(VueSocketio, 'http://socketserver.com:1923');
|
Vue.use(VueSocketio, 'http://socketserver.com:1923');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user