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