mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
added import of library to usage section
This commit is contained in:
parent
2f17ac9a17
commit
4b7ec2f83e
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue