2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-07 22:22:25 +03:00

fix wrong parameter.

This commit is contained in:
Aaron Chen
2017-06-29 15:41:05 +08:00
parent 93e17ffe0f
commit 96eb7bbfdc
+1 -1
View File
@@ -6,7 +6,7 @@ export default {
install (Vue, connection, protocol = '', store, opts = {}) {
if (!connection) { throw new Error('[vue-native-socket] cannot locate connection') }
let observer = new Observer(connection, store, protocol, opts)
let observer = new Observer(connection, protocol, store, opts)
Vue.prototype.$socket = observer.WebSocket