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

Merge pull request #89 from rigwild/patch-1

No default connection string if connectManually
This commit is contained in:
Viktor
2021-08-02 15:49:43 +03:00
committed by GitHub
+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