mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
commit
c7491fc762
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue