2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 04:29:38 +03:00

No default connection string

This commit is contained in:
rigwild
2019-05-06 13:48:47 +02:00
committed by GitHub
parent 64c858f61d
commit 434235a0f5
+1 -1
View File
@@ -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