2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-08 06:32:27 +03:00

Update README.md

This commit is contained in:
Will McNaughton
2018-04-02 15:35:46 -05:00
parent d6c6333740
commit c2653bb6db
+12
View File
@@ -61,6 +61,18 @@ Vue.use(VueNativeSock, 'ws://localhost:9090', {
})
```
Manage connection manually:
``` js
Vue.use(VueNativeSock, 'ws://localhost:9090', {
connectManually: true,
})
const vm = new Vue()
vm.$connect()
// do stuff with WebSockets
vm.$disconnect()
```
#### On Vuejs instance usage
``` js