mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-20 18:10:35 +03:00
fix wrong parameter.
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ export default {
|
|||||||
install (Vue, connection, protocol = '', store, opts = {}) {
|
install (Vue, connection, protocol = '', store, opts = {}) {
|
||||||
if (!connection) { throw new Error('[vue-native-socket] cannot locate connection') }
|
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
|
Vue.prototype.$socket = observer.WebSocket
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user