Vue-socket.io real-time communication problem

main.js
Vue.use (VueSocketio, socketi (" https://**"))
chat.vue

)
sockets: {
  connect() {
    console.log("")

},

  im_chat_msg_event(value) {
    this.getPushMsgEvent(value)
  }
},

browser debugging is really successful. Why can"t connect and im_chat_msg_event events be triggered all the time?

May.26,2022

I also have the same problem that I have to refresh before I can trigger the callback function, and I don't know why

Menu