mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
fix vue 3 plugin install
This commit is contained in:
parent
2f63eebb70
commit
a1bc422202
1 changed files with 4 additions and 4 deletions
|
@ -26,11 +26,11 @@ export default class VueSocketIO {
|
||||||
* Vue.js entry point
|
* Vue.js entry point
|
||||||
* @param Vue
|
* @param Vue
|
||||||
*/
|
*/
|
||||||
install(Vue){
|
install(app){
|
||||||
|
|
||||||
Vue.prototype.$socket = this.io;
|
app.config.globalProperties.$http = this.io;
|
||||||
Vue.prototype.$vueSocketIo = this;
|
app.config.globalProperties.$vueSocketIo = this;
|
||||||
Vue.mixin(Mixin);
|
app.mixin(Mixin);
|
||||||
|
|
||||||
Logger.info('Vue-Socket.io plugin enabled');
|
Logger.info('Vue-Socket.io plugin enabled');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue