From 434235a0f5a603eafcc14891ac511734df1ef6de Mon Sep 17 00:00:00 2001 From: rigwild Date: Mon, 6 May 2019 13:48:47 +0200 Subject: [PATCH] No default connection string --- src/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.js b/src/Main.js index 401a759..091186b 100755 --- a/src/Main.js +++ b/src/Main.js @@ -4,7 +4,7 @@ import Emitter from './Emitter' export default { install (Vue, connection, opts = {}) { - if (!connection) { throw new Error('[vue-native-socket] cannot locate connection') } + if (!connection && !opts.connectManually) { throw new Error('[vue-native-socket] cannot locate connection') } let observer = null