mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-18 18:30:35 +03:00
Update README.md
This commit is contained in:
@@ -17,7 +17,7 @@ socket.io implemantation for vuejs
|
|||||||
``` js
|
``` js
|
||||||
import VueSocketio from 'vue-socket.io'; // for ES6
|
import VueSocketio from 'vue-socket.io'; // for ES6
|
||||||
|
|
||||||
// var VueSocketio require('vue-socket.io') // for commonjs
|
// var VueSocketio = require('vue-socket.io') // for commonjs
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user