mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-23 00:30:34 +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 {
|
export default {
|
||||||
|
|
||||||
install (Vue, connection, opts = {}) {
|
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
|
let observer = null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user