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:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user