From 0ec586b4d5a07ac427933bb77d45174285554bd4 Mon Sep 17 00:00:00 2001 From: Philip Marais Date: Wed, 26 Sep 2018 11:31:41 +0200 Subject: [PATCH] Readme update for manual connect `vm.$connect(connectionURL, connectionOpts)` example in the `Readme` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f517249..84864f3 100755 --- a/README.md +++ b/README.md @@ -69,8 +69,8 @@ Vue.use(VueNativeSock, 'ws://localhost:9090', { 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/') +// Connect to an alternative websocket URL and Options e.g. +vm.$connect('ws://localhost:9090/alternative/connection/', { format: 'json' }) // do stuff with WebSockets vm.$disconnect() ```