From 3ea1a54c77fb2176053edaa35d5c20c7fd983f83 Mon Sep 17 00:00:00 2001 From: Philip Marais Date: Wed, 26 Sep 2018 07:28:03 +0200 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7ced2a9..f517249 100755 --- a/README.md +++ b/README.md @@ -67,7 +67,10 @@ Vue.use(VueNativeSock, 'ws://localhost:9090', { connectManually: true, }) const vm = new Vue() +// Connect to the websocket target specified in the configuration vm.$connect() +// Connect to an alternative websocket URI +vm.$connect('ws://localhost:9090/alternative/connection/') // do stuff with WebSockets vm.$disconnect() ```