mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-07 08:02:26 +03:00
Api updates (#7)
* move all instantiation options into the opts hash * 2.0.0
This commit is contained in:
+2
-2
@@ -3,10 +3,10 @@ import Emitter from './Emitter'
|
||||
|
||||
export default {
|
||||
|
||||
install (Vue, connection, protocol = '', store, opts = {}) {
|
||||
install (Vue, connection, opts = {}) {
|
||||
if (!connection) { throw new Error('[vue-native-socket] cannot locate connection') }
|
||||
|
||||
let observer = new Observer(connection, protocol, store, opts)
|
||||
let observer = new Observer(connection, opts)
|
||||
|
||||
Vue.prototype.$socket = observer.WebSocket
|
||||
|
||||
|
||||
Reference in New Issue
Block a user