From c2653bb6db76b9505f028a5ba7f42a5a0dacc311 Mon Sep 17 00:00:00 2001 From: Will McNaughton Date: Mon, 2 Apr 2018 15:35:46 -0500 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index b8af74c..82bb8ff 100755 --- a/README.md +++ b/README.md @@ -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